Python Programming - Standard Libraries - Discussion

Discussion Forum : Standard Libraries - General Questions (Q.No. 86)
86.
What is the purpose of the csv module?
Sorting elements in a list
Handling CSV (Comma-Separated Values) files
Performing mathematical operations
Implementing priority queues
Answer: Option
Explanation:
import csv

# Example usage of csv module for reading from a CSV file
with open('data.csv', 'r') as csvfile:
    reader = csv.reader(csvfile)
    for row in reader:
        print(row)
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.