import pickle

some_data = [
    "a list",
    "containing",
    5,
    "values including another list",
    ["inner", "list"],
]

with open("pickled_list", "wb") as file:
    pickle.dump(some_data, file)

with open("pickled_list", "rb") as file:
    loaded_data = pickle.load(file)

print(loaded_data)
assert loaded_data == some_data

data = {
    "a": 1,
    "b" : 2
}

with open("obz", "wb") as file:
    pickle.dump(data, file)

with open("obz", "rb") as file:
    obzd = pickle.load(file)

print(obzd)
import pickle

some_data = [
    "a list",
    "containing",
    5,
    "values including another list",
    ["inner", "list"],
]

with open("pickled_list", "wb") as file:
    pickle.dump(some_data, file)

with open("pickled_list", "rb") as file:
    loaded_data = pickle.load(file)

print(loaded_data)
assert loaded_data == some_data

data = {
    "a": 1,
    "b" : 2
}

with open("obz", "wb") as file:
    pickle.dump(data, file)

with open("obz", "rb") as file:
    obzd = pickle.load(file)

print(obzd)