brennerm / PyTricks

Collection of less popular features and tricks for the Python programming language
MIT License
3.07k stars 502 forks source link

Added ternary.py #50

Closed danillosouza closed 9 years ago

danillosouza commented 9 years ago

Emulation of ternary operator.

brennerm commented 9 years ago

This example is already shown in "boolasint.py".