How to print the items of a list in a dictionary in Python

1 Answer

0 votes
dictionary = {'a': 1, 'b': 2, 'c': 3, 'd': [56, 12, 65, 99]}

print(dictionary['d'])


'''
run:

[56, 12, 65, 99]

'''

 



answered Oct 31, 2017 by avibootz

Related questions

1 answer 174 views
1 answer 160 views
1 answer 151 views
151 views asked Oct 22, 2020 by avibootz
1 answer 159 views
159 views asked Oct 22, 2020 by avibootz
1 answer 187 views
...