Tamil Nadu Board of Secondary EducationHSC Science Class 12th

What is the output of the following program? import csv d=csv.reader(open('c:\PYPRG\ch13\city.csv')) next(d) for row in d: print(row) if the file called “city.csv” cont - Computer Science

Advertisement Remove all ads
Advertisement Remove all ads
Advertisement Remove all ads
MCQ

What is the output of the following program? import csv

d=csv.reader(open('c:\PYPRG\ch13\city.csv'))
next(d)
for row in d:
   print(row)
if the file called “city.csv” contain the following details

chennai,mylapore
mumbai,andheri

Options

  • chennai,mylapore

  • mumbai,andheri

  • chennai
    mumba

  • chennai,mylapore
    mumbai,andheri

Advertisement Remove all ads

Solution

mumbai,andheri

Concept: Writing Data into Different Types in CSV Files
  Is there an error in this question or solution?
Chapter 13: Python and CSV files - Evaluation [Page 265]

APPEARS IN

Tamil Nadu Board Samacheer Kalvi Class 12th Computer Science Answers Guide
Chapter 13 Python and CSV files
Evaluation | Q 7. | Page 265
Share
Notifications

View all notifications


      Forgot password?
View in app×