i have figured out the way to extract jokes from the api but not been able to write it to a csv.
Problem in writing the jokes in a csv
Hey @wadhwasrijan,
you can get help from the code below…
import csv
with open('innovators.csv', 'w', newline='') as file:
writer = csv. writer(file)
writer. writerow(["SN", "Name", "Contribution"])
writer. writerow([1, "Linus Torvalds", "Linux Kernel"])
writer. writerow([2, "Tim Berners-Lee", "World Wide Web"])