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