Share your repls and programming experiences

← Back to all posts
Test-Marker
Zephrio (1)

Type in the grade boundaries and the max marks so that you only have to type in what mark you/other got to find out their percentage and grade.

Comments
hotnewtop
thenullified (167)

"+",Agrade,"=A\n+",Bgrade,"=B\n+",Cgrade,"=C\n+",Dgrade,"=D\n+",Egrade,"=E"


instead of using this whole painful string, use a f string.
f'+{Agrade}=A\n....[rest of code here}'
enclose variables in {} and put a f at the start