3.6 자료구조 비교하기

marx_list = ['Groucho', 'Chico', 'Harpo']
marx_tuple = 'Groucho', 'Chico', 'Harpo'
marx_dict = {'Groucho':'banjo', 'Chico':'piano', 'Harpo':'harp'}
marx_list[2]

‘Harpo’

marx_tuple[2]

‘Harpo’

marx_dict['Harpo']

‘harp’

Comments