Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. This took me way too long to figure out. I am mad.
  2.  
  3. [1] pry(main)> x = false
  4. => false
  5. [2] pry(main)> x = x or true
  6. => true
  7. [3] pry(main)> x
  8. => false
  9.  
  10. In [1]: x = False
  11. In [2]: x = x or True
  12. In [3]: x
  13. Out[3]: True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement