dict1 = {'a': ['apple', 'abandon', 'ant'], 'b': ['banana', 'bee', 'become'], 'c': ['cat', 'come'], 'd': 'down'} a = input() for key in dict1: if a == key: for value in dict1[key]: print(value, end=' ')
dict1 = {'a': ['apple', 'abandon', 'ant'], 'b': ['banana', 'bee', 'become'], 'c': ['cat', 'come'], 'd': 'down'} a = input() for key in dict1: if a == key: for value in dict1[key]: print(value, end=' ')