Programming and Problem Solving through Python : File Processing in Python

पायथन में फ़ाइलों के लिए डिफ़ॉल्ट मोड क्या है? , What is the default mode for files in Python?

What is the default mode for files in Python?




Solution
B. Read



Explanation
In Python, when you open a file using the open() function without specifying a mode, the default mode is 'r', which stands for "read." Therefore, if you don't explicitly provide a mode, Python assumes you want to open the file for reading.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Exam Quiz Website development Company in Allahabad