Chuk Norris Jokes Assignment

Id : 107
Joke: Chuck Norris doesn’t bowl strikes, he just knocks down one pin and the other nine faint.

In the above joke there is a comma ‘,’ but if we add a comma then the text after comma goes to the next column in the CSV file.

How can we add comma ‘,’ in the CSV file without changing the column?

hey @anas_cb19 ,
first thing , welcome to the community.

and for your doubt , for this what you can do , just enclose your whole joke inside quotes , in this that , won’t be read as a seperator in csv.

i hope this helps.

I found that first convert it to the DataFrame and then convert it to the CSV file.

yeah, you can also pandas for this purpose it will automatically handle the task.

but still if you want to try without pandas , then that was the only option.

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.

1 Like

Thanks @prashant_ml for your help.