Chuk norris jokes

after extracting a joke how to convert it in a csv file format

you have to iterate over all rows and than create a file object and than write in it as follows.
Following is the very basic example to write something in csv file.

filename=“chuck.csv”

with open(filename,‘w’,encoding=‘utf-8’) as f:
f.write(“Your Content”)

Remeber the column values are ‘,’ separated in csv and rows are separated using ‘\n’. So include them accordingly.

Hope this helped

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.