Chuck Norris Jokes

I am doing everything right but, getting an accuracy of 52 %. Why?

Hey Amit,
Please share your code on cb.lk/ide.

Thanks,

here is the link to my code:

A Better approach is to use make a DataFrame first and then convert it to csv file, this preserves all double quotes and single quotes.
Look at the code snippet.

1 Like

Thanks a lot. Now i got the problem, for every joke having commas in it, i have to encapsulate them in inverted commas.

1 Like

I am unable to load the csv file into my jupyter notebook.
Can you please help me with that ?

1 Like

Under the for loop statement, the line where you have defined the result=data[‘value’][‘joke’]. In this, from where has the ‘joke’ come from.? I mean, where have you defined it? I am a bit confused.