Summer Deals - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Final Quiz
4. Question 3
Summary

Instruction

Good job! Let's move on to CSV writing.

Exercise

Write the contents of the longest_flights list into a CSV file named longest_flights.csv. Use default write settings. Do not add a header row.

Stuck? Here's a hint!

Use the following template:

with open('filename.csv', mode='w', newline='') as csv_file:
  csv_writer = csv.writer(csv_file)
  csv_writer.writerows(rows)