# dict1 = {'color': 'blue', 'shape': 'circle'}
# dict2 = {'color': 'red', 'number': 42}
#
# dict1.update(dict2)
# #print(dict1)
#
#
# famous_museums = {'Washington': 'Smithsonian Institution', 'Paris': 'Le Louvre', 'Athens': 'The Acropolis Museum'}
# # print(famous_museums)
# famous_museums.pop("Athens")
# # print(famous_museums)
#
# ex_dict = {"a": "anteater", "b": "bumblebee", "c": "cheetah"}
# print(ex_dict)
# print(ex_dict.keys())
# print(ex_dict.values())
# print(ex_dict.items())

#
# my_pet = {"name": "Squish", "type": "dog", "age": 3}
# print(my_pet)
#
#
# my_pet.update({"age": 4, "name":"Mickey"})
# print(my_pet)
#
# d = {1: "one", 2: "three"}
# d1 = {2: "two"}
# d.update()
# print(d)
#
#
# test_scores = {"Grace":[80, 72, 90], "Jeffrey":[88, 68, 81], "Sylvia":[80, 82, 84], "Pedro":[98, 96, 95], "Martin":[78, 80, 78], "Dina":[64, 60, 75]}
#
# student = [students for students in test_scores.keys()]
# print(student)
# print([students for students in test_scores.keys()])
#
#
#
# test_scores = {"Grace":[80, 72, 90], "Jeffrey":[88, 68, 81], "Sylvia":[80, 82, 84], "Pedro":[98, 96, 95], "Martin":[78, 80, 78], "Dina":[64, 60, 75]}
#
# print(list(test_scores.values()))
#
#
# num_exercises = {"functions": 10, "syntax": 13, "control flow": 15, "loops": 22, "lists": 19, "classes": 18, "dictionaries": 18}
#
# total_exercises = 0
# for value in num_exercises.values():
#   total_exercises += value

# tarot = { 1:	"The Magician", 2:	"The High Priestess", 3:	"The Empress", 4:	"The Emperor", 5:	"The Hierophant", 6:	"The Lovers", 7:	"The Chariot", 8:	"Strength", 9:	"The Hermit", 10:	"Wheel of Fortune", 11:	"Justice", 12:	"The Hanged Man", 13:	"Death", 14:	"Temperance", 15:	"The Devil", 16:	"The Tower", 17:	"The Star", 18:	"The Moon", 19:	"The Sun", 20:	"Judgement", 21:	"The World", 22: "The Fool"}
#
# spread = {}
#
# print(tarot.get(13))
# spread["past"] = tarot.get(13)
# tarot.pop(13)

tarot = { 1:	"The Magician", 2:	"The High Priestess", 3:	"The Empress", 4:	"The Emperor", 5:	"The Hierophant", 6:	"The Lovers", 7:	"The Chariot", 8:	"Strength", 9:	"The Hermit", 10:	"Wheel of Fortune", 11:	"Justice", 12:	"The Hanged Man", 13:	"Death", 14:	"Temperance", 15:	"The Devil", 16:	"The Tower", 17:	"The Star", 18:	"The Moon", 19:	"The Sun", 20:	"Judgement", 21:	"The World", 22: "The Fool"}

# spread = {}
# spread["past"] = tarot.get(13)
# tarot.pop(13)
# spread["present"]= tarot.get(22)
# tarot.pop(22)
# spread["future"] = tarot.get(10)
# tarot.pop(10)
#
# for key, value in spread.items():
#   print("Your " + str(key) + " is the "+ str(value) +" card.")


def take_and_pop(new_list, card, num1,num2, num3):
    one = "past"
    two = "present"
    three = "future"
    new_list[one] = card.get(num1)
    print("Your " + str(one) + " is the " + str(card.get(num1)) + " card.")
    card.pop(num1)
    new_list["present"] = card.get(num2)
    print("Your " + str(two) + " is the " + str(card.get(num2)) + " card.")
    card.pop(num2)
    new_list["future"] = card.get(num3)
    print("Your " + str(three) + " is the " + str(card.get(num3)) + " card.")
    card.pop(num3)

spread = {}
take_and_pop(spread, tarot,13,22,10)


inventory = {"iron spear": 12, "invisible knife": 30, "needle of ambition": 10, "stone glove": 20, "the peacemaker": 65, "demonslayer": 50}
print(12 in inventory)
