Guest User

Untitled

a guest
Jul 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. def tabuada():
  2. equacao = f'2 * 3'
  3. print(equacao.replace('*', 'x'))
  4. return int(input('Resposta: ')) == eval(equacao)
  5.  
  6. acertos = 0
  7. while(tabuada()):
  8. acertos += 1
  9. print(f'Acertos: {acertos}')
Add Comment
Please, Sign In to add comment