CSV 40
CSV 40
CSV (Comma Separated Values/Data) files to store data that are in tabular format
into plain text & each line is treated as a data record in the file.
Define Delimiter:
It is a sequence of one or more characters used to specify the boundary between
separate.
Example:
A delimiter is the comma character, or Space, or Gap or Colon etc.. a CSV file in
Notepad, Microsoft Excel, OpenOffice Calc, and Google Docs.
In PYTHON Environment we can able to work with csv files, we can use built-in
module is called CSV.
1. Open the file on required mode
2. Create the csv file represented object
3. Read or write or update the data
Syntax:
import csv
CSV Functions
1 csv.reader
2 csv.writer