Share your repls and programming experiences

← Back to all posts
Maths Test
CodingCactus (4188)

Asks you random questions (+,-,/,x)

Two attempts to get it correct:
2 points if you get it first try
1 point if you get it on your second try

Or until time runs out.

60 seconds to get the most questions correct;
Have fun!

oignons (237)

yey 52

Great program! Might i suggest adding a time limit?

CodingCactus (4188)

@ipastrano good idea, ill do it today. How long?

CodingCactus (4188)

Done it (60 seconds)

kbadrinath_tcsp (222)

good program, but if you get a question wrong: this error comes up
File "", line 66, in <module>
ans = int(input(str(q1_1) + randOperator + str(q1_2) + " = "))
ValueError: invalid literal for int() with base 10: ''

CodingCactus (4188)

I'm pretty sure that only comes up if you try to input something that isn't a number @kbadrinath_tcsp