Chuck Norris Joke

Hi this is my code for chuck norris joke and I am getting error while submitting my csv file which is correct.
Please can someone help me in identifying the problem.

#‘http://api.icndb.com/jokes/1
import requests
import json
with open(“ID.csv”,“r”) as file:
ids=(file.readlines())
ids=[int(value[:-1]) for value in ids[1:]]
# print(ids)
with open(“output.csv”,“w”) as file:
file.write(“ID,Joke\n”)
result=""
for id in ids[1:]:
joke_url=f’http://api.icndb.com/jokes/{id}
response=requests.get(joke_url)
data=json.loads(response.content)
result+="{},".format(id)+data[‘value’][‘joke’]+"\n"
print(result)
# result=result[:-1]
print(result)
file.write(result)

hey @VinayakSingh11111 ,
can you also share your submission file.
Will check it once too.

hey @prahant how can i share my file

just upload it on either google drive or github and share the link here.
Will look into it.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.