dictionary comprehension numbers = [1, 2, 3, 4, 5] names = ['tiger', 'rabbit', 'frog', 'lion', 'noguri'] animals = {} # empty dict for i in range(len(numbers)): animals[numbers[i]] = names[i] print(animals) # dictionary comprehension animals2 = {numbers[i]: names[i] for i in range(len(numbers))} print(animals2) 실행 결과{1: 'tiger', 2: 'rabbit', 3: 'frog', 4: 'lion', 5: 'noguri'}{1: 'tiger', 2: 'rab..