Snatch any course you want for just $15! Go to “Courses” and find a course ↓
Final Quiz
5. Question 4


Excellent! And now, do you still remember how to register a dialect?


Create a new dialect named semicolon-quote-all that quotes every single field (the appropriate value for quoting is csv.QUOTE_ALL) and uses semicolons as delimiters. Write the data from sentence_of_the_day list (with header) into a file named sentence_of_the_day.csv using the dialect you created.

Stuck? Here's a hint!

To register a dialect, use:

csv.register_dialect('dialect-name', options...)

The options you'll need are: delimiter and quoting.