Last active
December 4, 2023 20:53
-
-
Save eliasalbuquerque/6ec77c42ac1c8411837d9d97cde32f29 to your computer and use it in GitHub Desktop.
Curso Dev Aprender | Jhonatan de Souza
This file contains hidden or 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
# DESAFIO | |
# Use expressão condicional (operador ternário) para criar a seguinte condição: | |
# - se velocidade estiver acima de 100 exibir, você foi multado, caso contrário | |
# exiba siga em frente. | |
velocidade = random.randint(80, 120) | |
print(f'{velocidade}: Voce foi multado') if velocidade >= 100 else print(f'{velocidade}: Siga em frente') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment