num_of_entries = 3 students = {} for _ in range(num_of_entries): name, date, attn = list(map(str.strip, input().replace('-', ':').split(":"))) name = name.split()[0] if name not in students: students[name] = {date: attn} else: students[name].update({date: attn}) student = input() if student in students: for date in students[student]: print('{} - {}'.format(date, students[student][date])) выводит Traceback (most recent call last): File "C:/Python34/egrg.py", line 5, in name, date, attn = list(map(str.strip, input().replace('-', ':').split(":"))) ValueError: need more than 1 value to unpack