작은 공연장(Small Venue) 콘서트 티켓의 값은 다음과 같다.
{'type':'small venue', 'conDate': 12-Jun-2015, 'locDescr': 'Plymoth Concert Hall', 'startTime':'17:30', 'price':'$75.00', 'perfName':'Joshua Redman' }
마지막으로 축제(Festival)의 값은 다음과 같다.
{'type':'festival', 'festStartDate': 01-Feb-2015, 'festEndDate': 01-Feb-2015, 'locDescr': 'Portland, OR', price:'$100.00', 'festName':'PDX Jazz Festival'}
다음과 같이 각 리스트는 ConcertApp이라는 이름공간에 저장된 티켓 키에 할당될 수 있다.
ConcertApp[ticket:18380] = {'type':'stadium', 'conDate':15-Mar-2015, 'locDescr': 'Springfield Civic Center', 'assgnSeat': 'J38', 'startTime':'17:30', 'price':'$50.00', 'perfName': 'The National' } ConcertApp[ticket:18381] = {'type':'small venue', 'conDate': 12-Jun-2015, 'locDescr': 'Plymoth Concert Hall', 'startTime':'17:30', 'price':'$75.00', 'perfName':'Joshua Redman' } ConcertApp[ticket:18382] = {'type':'festival', 'festStartDate': 01-Feb-2015, 'festEndDate': 01-Feb-2015, 'locDescr': 'Portland, OR', 'price':'$100.00', 'festName':'PDX Jazz Festival'}
티켓 유형을 확인하려고 set과 get 함수를 만들면 적당한 속성값을 할당하거나 조회할 수 있을 것이다.