Csv file creation doubt for the challenge

i have extracted the jokes with their ids but i am not able to make a csv file this is my code:

CODE:
import urllib
from urllib.request import urlopenurl_result=urlopen(url)
data=url_result.read()
import json
json_data=json.loads(data)
json=json_data[“value”]
for i in range(473):
print(json[i][“id”],json[i][“joke”])

when i insert this to a list the ids do not come,so please help me create csv file,please answer soon

hi @parth_99
json works like dictionary so u cant iterate over it in for manner.
try to scrap one url at a time that store in csv that would be easiler

So then i have to scrap all jokes individually

url=“http://api.icndb.com/jokes/1

Yes using for loop or u can scrap all urls at once and Handel the data structures for it