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’])
python > Dictionaries > Flashcards
create a simple dictionary, and print the individual values
alien_0 = {‘color’: ‘green’, ‘points’: 5}
print(alien_0[‘color’])
print(alien_0[‘points’])