Answers for "to iterate across information on same nest"

0

to iterate across information on same nest

#No need for "for" loop. Just change the number by key to change to different nested object
for i in data:
	print(data['data'][0]['content'][0]['key'])
	print(data['data'][0]['content'][0]['value'])
  									#V Here below and above
	print(data['data'][0]['content'][1]['key'])
	print(data['data'][0]['content'][1]['value'])
Posted by: Guest on April-19-2022

Python Answers by Framework

Browse Popular Code Answers by Language