हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

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

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×