xxxxxxxxxx
dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
print(dict['Name']) # Zara
print(dict['Age']) # 7
xxxxxxxxxx
# define a dictionary
my_dict = {'a': 1, 'b': 2, 'c': 3}
# get the values of the dictionary
values = my_dict.values()
# print the values
print(values) # dict_values([1, 2, 3])
# get a list of the values
values = list(my_dict.values())
# print the values
print(values) # [1, 2, 3]
xxxxxxxxxx
alien = {'color': 'green', 'points': 5}
print("The alien's color is " + alien['color'])