Chuk norris challenge

sir,in this challenge do we have to iterate over all ids and print all jokes or the user will input the id?

Hey @Roopa1i_ma1hotra, yes you have to iterate over all the ids but in the final csv file, you have to save only jokes corresponding to ids given in the ID.csv file. You will have to download the ID.csv file from the dataset given in this challenge.

Hope this helps !
Happy Learning :slight_smile:

I hope you are able to understand this ? You are given the id’s for which you have to extract the jokes (and save in a csv file). So just iterate over the ids and if that id is in the given ID.csv file, then extract it’s corresponding joke :slight_smile:

Happy Learning :slight_smile:

sir i dont understand. how can i extract from id.csv file? can you give a hint

Yes sure. You just have to read the ID.csv and then iterate over it. Have a look :

ids = pd.read_csv('ID.csv')
for id in ids['ID']: 
   extract the jokes using http request for id

Hope you got the clue :slight_smile:
Now try to figure out the further steps. If you have any slightest of doubts then do ask me again :slight_smile:

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.