my_dict = {
'Вика': [2, 0, 0, 2, 0],
'Даня': [2, 1, 0, 1, 3],
'Лиза': [2, 2, 0, 0, 6]
}
for key in my_dict:
print(f"{key}: {str(my_dict[key]).replace('[', '').replace(']', '')}")
d = {'Вика': [2, 0, 0, 2, 0],
'Даня': [2, 1, 0, 1, 3],
'Лиза': [2, 2, 0, 0, 6]}
for key, values in d.items():
string_values = [str(i) for i in values]
joined = ", ".join(string_values)
print(f"{key}: {joined}")