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

Tabulate the different modes with their meaning. - Computer Science

Advertisements
Advertisements

प्रश्न

Tabulate the different modes with their meaning.

थोडक्यात उत्तर

उत्तर

Mode Description
V open a file for reading (default)
‘W’ Open a file for writing. Creates a new file if it does not exist or truncates the file if it exists.
‘x’ Open a file for exclusive creation. If the file already exists, the operation fails.
‘a’ Open for appending at the end of the file without truncating it. Creates a new file if it does not exist.
‘t’ Open in text mode, default
‘b’ Open in binary mode.
‘+’ Open a file for updating (reading and Writing).
shaalaa.com
Introduction to Python and CSV Files
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 13: Python and CSV files - Evaluation [पृष्ठ २६६]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×