Advertisement
dprincef

Untitled

Mar 7th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. empty = {} #Creates a dictionary of an empty key-value
  2. my_dict = {"book":1, "Boys":3, "Girls":4} #Creates a my_dict dictionary of 3 Key_values
  3. winning_lottery_numbers = dict([("class", True),("School", False)]) #Creates a dictionary from a tupule using the dict function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement