Source Code:
(back to article)
colors = {'apple': 'red', 'banana': 'yellow', 'grape': 'purple'} print(colors['apple']) # Returns 'red'
Result:
Report an issue