Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # var_boolean_switch.py
- paused = False
- print paused
- paused = (True, False)[paused]
- print paused
- sw = 0
- print sw
- sw = (1, 0)[sw]
- print sw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement