मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता १२

What is the difference between reader() and DictReader() function? - Computer Science

Advertisements
Advertisements

प्रश्न

What is the difference between reader() and DictReader() function?

फरक स्पष्ट करा
Advertisements

उत्तर

reader() DictReader() function
csv. reader and csv.writer work with list/ tuple csv.DictReader and csv.DictWriter work with dictionary.
csv. reader and csv.writer do not take additional argument. csv.DictReader and csv.DictWriter take additional argument fieldnames that are used as dictionary keys.
shaalaa.com
Read and Write a CSV File Using Python
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 13: Python and CSV files - Evaluation [पृष्ठ २६६]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
पाठ 13 Python and CSV files
Evaluation | Q 5. | पृष्ठ २६६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×