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 235 views
1 answer 276 views
1 answer 240 views
240 views asked Jan 12, 2021 by avibootz
1 answer 295 views
1 answer 322 views
1 answer 269 views
269 views asked May 14, 2024 by avibootz
1 answer 207 views
...