Created
March 6, 2019 22:10
-
-
Save ramalho/f6fc95042b09d946402fbb06e3538d7f to your computer and use it in GitHub Desktop.
Resposta entre dois valores
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
resposta = -1 | |
while resposta < 0 or resposta > 150: | |
try: | |
resposta = int(input('Digite um valor entre 0 e 150: ')) | |
except ValueError: | |
continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment