मराठी

Write the file mode that will be used for opening the following file. Also, write the Python statement to open the following file: a binary file “btry.dat” in read only mode.

Advertisements
Advertisements

प्रश्न

Write the file mode that will be used for opening the following file. Also, write the Python statement to open the following file:

a binary file “btry.dat” in read only mode.

एका वाक्यात उत्तर
Advertisements

उत्तर

“rb”

file_handle = open(“btry.dat”, “rb”)

shaalaa.com
Types of Files in Python
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 2: File Handling in Python - Exercise [पृष्ठ ३७]

APPEARS IN

एनसीईआरटी Computer Science [English] Class 12
पाठ 2 File Handling in Python
Exercise | Q 3. d) | पृष्ठ ३७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×