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 145 views
1 answer 193 views
1 answer 165 views
165 views asked Jan 12, 2021 by avibootz
1 answer 197 views
1 answer 240 views
1 answer 181 views
181 views asked May 14, 2024 by avibootz
1 answer 108 views
...