Files
math_game/math_game.py
2020-01-11 21:54:20 +01:00

13 lines
430 B
Python

# copyright 2020 Simon Averbach and Zev Averbach
def math_game():
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:,}")