commit ef5a38741b08ac9f6985b97c3248cae8940fa201 Author: zevav Date: Sat Jan 11 21:51:55 2020 +0100 first diff --git a/math_game.py b/math_game.py new file mode 100644 index 0000000..2c11d78 --- /dev/null +++ b/math_game.py @@ -0,0 +1,15 @@ +# copyright 2020 Simon Averbach and Zev Averbach + +def math_game(): + # TODO: make this into a web game, so we can make the numbers bigger + # TODO: make a warning, or maybe prevent the user from making a count that's + # going to take longer than five minutes + print("Hi, welcome to math game!") + print("How high do you want to count?") + number = int(input("> ")) + print("How much do you want to add each time?") + each = int(input("> ")) + print(f"Okay, here we go! We're going to count from zero to {number} by {each} at a time.") + sleep(3) + for i in range(0, number, each): + print(f"{i:,}")