Skip to content

Instantly share code, notes, and snippets.

@nns2009
Created November 18, 2021 01:37
Show Gist options
  • Save nns2009/f15d81e20754d3c4a33e56f36d6b42e8 to your computer and use it in GitHub Desktop.
Save nns2009/f15d81e20754d3c4a33e56f36d6b42e8 to your computer and use it in GitHub Desktop.
# Made in 21 second
# Watch this video to see how:
# https://youtu.be/r3a9obNqno4
from random import randint
m = 5
while True:
a = randint(m, 3*m)
b = randint(m, 3*m)
print(f'{a} * {b} = ?')
while int(input()) != a * b:
print('Wrong')
print('Correct')
print('-' * 20)
m = m * 7 // 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment