Dictionaries Flashcards

1
Q

create a simple dictionary, and print the individual values

A

alien_0 = {‘color’: ‘green’, ‘points’: 5}

print(alien_0[‘color’])
print(alien_0[‘points’])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly