Python Forum
What tool do I need to look at a CSV file?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What tool do I need to look at a CSV file?
#1
The following code successfully created a .csv file:
#!/usr/bin/env python3
#MoviesCSV.py

import csv

movieList = [["Monty Python and the Holy Grail", 1975],
          ["Uncle Bazerko's Violent Adventure", 2011],
          ["The Expendables", 2010],
          ["Duke Nukem: Fate of Humanity", 2019]]

with open("movies.csv", "w", newline="") as file:
    writer = csv.writer(file)
    writer.writerows(movieList)
But I can't open it:
   

What tool do I need to open and view it?
Reply


Messages In This Thread
What tool do I need to look at a CSV file? - by RedSkeleton007 - Mar-29-2018, 05:51 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020