Skip to content

Instantly share code, notes, and snippets.

@willy-r
Created December 30, 2020 03:48
Show Gist options
  • Save willy-r/cf72159c7aaec4e238ac8feb73283646 to your computer and use it in GitHub Desktop.
Save willy-r/cf72159c7aaec4e238ac8feb73283646 to your computer and use it in GitHub Desktop.
Exemplo de ternário.
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