Last active
July 21, 2018 00:49
-
-
Save umluizlima/3aef04c4c3dbb0f55739def480b134b4 to your computer and use it in GitHub Desktop.
Tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
def tabuada(): | |
s = f"{randint(1,9)} * {randint(1,9)}" | |
print(s.replace('*', 'x')) | |
return int(input('Resposta: ')) == eval(s) | |
record = 0 | |
while(tabuada()): | |
record += 1 | |
print(f"Você acertou {record} vezes consecutivas!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment