Created
December 30, 2020 03:48
-
-
Save willy-r/cf72159c7aaec4e238ac8feb73283646 to your computer and use it in GitHub Desktop.
Exemplo de ternário.
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
preco_maca = 2.5 * maca if maca <= 5 else 2.2 * maca |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment