I have submitted the python file which contains the following code. I am confused because there was written as Upload CSV. Please tell me that whatever I have submitted is correct or clarify the question.
import requests
import json
id = input("Enter the joke’s ID: ")
url = “http://api.icndb.com/jokes/”+id
rp = requests.get(url,id)
data = rp.content
json_data = json.loads(data)
with open(‘joke.csv’,‘w’) as f:
f.write(json_data[‘value’][‘joke’])