Skip to content

Instantly share code, notes, and snippets.

@acwoss
Created May 21, 2018 01:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acwoss/6c727cb5d05541a5c2c1a94c7d31ade9 to your computer and use it in GitHub Desktop.
Save acwoss/6c727cb5d05541a5c2c1a94c7d31ade9 to your computer and use it in GitHub Desktop.
FriendlyVillainousCertification created by acwoss - https://repl.it/@acwoss/FriendlyVillainousCertification
from random import choice
numero = int(input('Digite o número da tabuada: '))
fator = choice(range(1, 11))
resposta = int(input(f'Quanto é {numero}x{fator}? '))
print('Acertou' if resposta == numero * fator else 'Errooou!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment