A little game with the goal to calculate simpel math equations fast.
- time
- numpy
- random
try:
number = int(input("Write something: ",))
except ValueError as e:
print("NaN")
Make small random math calculations- Run again
Make different kind of questionsCatch non integer answersStop stupid users/testers- Make more kind of questions
- Print to text file
- Run faster on 2nd try
More/less time dependent on type of question: +,-,*,/
- https://stackoverflow.com/questions/7370801/measure-time-elapsed-in-python
- https://stackoverflow.com/questions/3309664/python-timer-countdown
- https://docs.python.org/3.5/library/functions.html#round
- https://stackoverflow.com/questions/9522446/why-do-i-get-an-error-when-i-call-intinput-where-input-is-decimal-eg-87-9
- https://stackoverflow.com/questions/379906/how-do-i-parse-a-string-to-a-float-or-int-in-python
- https://stackoverflow.com/questions/510972/getting-the-class-name-of-an-instance
- https://stackoverflow.com/questions/10065407/in-python-whats-some-other-ways-to-write-a-if-x-1-or-x-5-or-x-10
- https://docs.python.org/3/library/stdtypes.html#set.isdisjoint
- https://stackoverflow.com/questions/4908666/how-to-use-while-not-in
- https://www.tutorialspoint.com/python/python_while_loop.htm
- https://stackoverflow.com/questions/10406130/check-if-something-is-not-in-a-list-in-python#10406143