How to loop through dictionary values in Python

1 Answer

0 votes
dict = {
    "name": "Tom",
    "age": 47,
    "langauge": "python", 
    "company":  "google"}
     
for value in dict.values():
	print(value)
 
 
 
'''
run:
 
Tom
47
python
google

'''

 



answered Jan 12, 2021 by avibootz

Related questions

1 answer 141 views
1 answer 191 views
1 answer 163 views
163 views asked Jan 12, 2021 by avibootz
1 answer 190 views
1 answer 234 views
1 answer 178 views
178 views asked May 14, 2024 by avibootz
1 answer 107 views
...