squares = {x: x**2 for x in range(6)}
print(squares)
# Вывод: {0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
keys = ['a', 'b', 'c']
values = [1, 2, 3]
my_dict = {k: v for k, v in zip(keys, values)}
print(my_dict)
# Вывод: {'a': 1, 'b': 2, 'c': 3}
original_dict = {'a': 1, 'b': 2, 'c': 3, 'd': 4}
filtered_dict = {k: v for k, v in original_dict.items() if v > 2}
print(filtered_dict)
# Вывод: {'c': 3, 'd': 4}
win_names = [
"Kate",
"Jane",
"Nik",
"Max",
"Tom"
]
wins = {k:v for k, v in enumerate(win_names, 1)}
print(win_names)
# Вывод: ['Kate', 'Jane', 'Nik', 'Max', 'Tom']