Advertisement
here2share

# dict_pitfall.py

Jul 6th, 2019
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. # dict_pitfall.py
  2.  
  3. print ({0: "zero", False: "N", 1: "one", True: "Y"})
  4. print ({False: "N", 0: "zero", True: "Y", 1: "one"})
  5. print ({1: "integer", 1.0: "float"})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement