DEV Community

loading...

Answer: Python 3.5 iterate through a list of dictionaries

ameera-abed
・1 min read
use=[{'id': 29207858, 'isbn': '1632168146', 'isbn13': '9781632168146', 'ratings_count': 0}]
for dic in use:
    for val,cal in dic.items():
        print(f'{val} is {cal}')

Discussion (0)

Forem Open with the Forem app