Write the file mode that will be used for opening the following file. Also, write the Python statement to open the following file: a text file “try.txt” in append and read mode.
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 text file “try.txt” in append and read mode.
एका वाक्यात उत्तर
Advertisements
उत्तर
“a+”
file_handle = open(“try.txt”, “a+”)
shaalaa.com
Types of Files in Python
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
