Error in submiting file

i m trying to submit this challenge , i write code on jn here is my code link https://ide.codingblocks.com/s/410477
i saved it as csv file but after submitting its showing 0%
accuracy can u plz tell what should i do resolve this prob…

hey @Ashu1318 ,
you are fetching just one joke of ID 15 .
You care provided with an id.csv file.
in this file you are provided with all the ids of jokes you need to fetch ,
so i would suggest you to do that and then try.

okay i will put for loop on all id’s but what’s the stoping criteria mean where to stop

when you will put the for loop , it will automatically end it.
Use pandas for this purpose , it will make your task more easier.

https://ide.codingblocks.com/s/410794 i chnged my code its printing all jokes but showing error error

could u plz tell what im missing in the code

in you code at the end,
change these
jokes.append(jk)
f.write("{} {}".format(i+1,jokes[i]))

to

if "," in jk:
f.write("{},'{}'".format(i+1,jk))
else:
f.write("{},{}".format(i+1,jk))

I hope this works.

sir, data to save ho rha h file me but iska format csv hai?? i mean isko csv me convert krna pdega na pandas ki help se ya automatically csv format me h

csv file hi to bn rhi hai …
csv means , comma seperated file.
tumne space le rkha tha ,
usko bs commas mein change kiya.

And no extra need now to use pandas.

https://ide.codingblocks.com/s/410822 sir dekho aise file me save ho rha h data or main isko download krke upload krta hu 0% accuracy show krta h

abhi toh shi lg rhi hai .
ek baar isko drive pr upload krke , mereko share krna… i will check it.

https://drive.google.com/drive/folders/1oq3Ik5_Qo9TxvcQNd8jmp3J1wsZUP3Ld sir isme extra col bn rhe har row me sayad yhi problem hai?

hey @Ashu1318 ,
kindly provide the access to view it.

sir hua access ???

Nope , its still showing to request access

sir i have sent the csv file on mail plz check this

hey @Ashu1318 ,
there is some problem in your csv file , i am not able to read it.
Can you please share me your code , i can just simply correct that.

have a look here.

Kindly just change the paths of file used.

plz explain line 17-18 of code