Advertisement
Kovitikus

0 value is false dictionary.get example

Sep 7th, 2020
1,043
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. dict = {key: 0}
  2. if dict.get(key):
  3.     # Won't get this far.
  4.     key = dict.get(key)
  5.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement