0
Python +Json
How to Get values from dictionary in For loop
3 Antworten
+ 10
d = {1:'a',2:'b',3:'c',4:'d'}
for v in d.values():
print(v)
you can also use:
for k,v in d.items():
print(v)
for k in d:
print(d[k])
Is that what you need ?
+ 4
There is a Module 'JSON' you can use.