game = {
    "name": "CS",
    "creation_dt": 2012,
    "type": "strzelanka",
    "PEGI": 16
}

print(game)

import pprint

pprint.pprint(game, indent=4, width=1)

game["price"] = "darmowa"

pprint.pprint(game, indent=4, width=1)

game["price"] = 122.35

pprint.pprint(game, indent=4, width=1)

print("*"*40)

for key in game.keys():
    print(key)

print("*"*40)

for value in game.values():
    print(value)

print("*"*40)

for k, v in game.items():
    print(k, " - ", v)

cs_dt = game["creation_dt"]

print(f'Rok utworzenia gry CS to : {cs_dt}')

print("*"*40)

# print(game["modification_dt"])

if game.get("name") == None:
    print('Brak klucza - modification_dt')
else:
    print('znalazłem wartość ', game.get("name"))

print("*"*40)

print("przed zmianą ", game)

# del game["price"]
# game.pop("type")
# game.popitem()
deleted_item = game.pop("creation_dt")

print("*"*40)

print("po zmianą ", game)
print('usunięto element ', deleted_item)

game.clear()

print(game)