Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Final Quiz
5. Question 4
Summary

Instruction

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

Exercise

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.