Advertisement
here2share

# var_boolean_switch.py

Jun 14th, 2015
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. # var_boolean_switch.py
  2.  
  3. paused = False
  4. print paused
  5. paused = (True, False)[paused]
  6. print paused
  7.  
  8. sw = 0
  9. print sw
  10. sw = (1, 0)[sw]
  11. print sw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement