Advertisement
Felanpro

Dictionaries

Mar 3rd, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. #Dictionaries
  2.  
  3. treasure_islands = {"Cold Island": "Cold Treasure",
  4.                     "Hot Island": "Hot Treasure"}
  5.  
  6. print(treasure_islands["Cold Island"]) #Output = Cold Treasure
  7. print(treasure_islands["Hot Island"]) #Output = Hot Treasure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement