How to print dictionary values in Python

1 Answer

0 votes
dict = {'python': 5, 'php': 3, 'java': 9, 'c++': 1}
 
for key, value in dict.items():
    print(value)
 
 
  
  
'''
run:
  
5
3
9
1
 
'''

 



answered Oct 22, 2020 by avibootz
...