English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

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

Advertisements
Advertisements

Question

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

MCQ

Solution

mumbai,andheri

shaalaa.com
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

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 13 Python and CSV files
Evaluation | Q 7. | Page 265
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×