What is with open in python?



What is with open in python?..

Answer / Mritunjay Kumar

In Python, 'open' is a built-in function used to open files. It returns a file object that can be manipulated for reading, writing, or appending data. For example: `file = open('example.txt', mode='r')`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is the purpose of _init_() function in python?

1 Answers  


What is the use of assertions in python?

0 Answers  


What is zip () in python?

1 Answers  


How does xrange work in python?

1 Answers  


What is lambda used for in python?

1 Answers  


What are local variables in python?

1 Answers  


What is operator overloading in python?

1 Answers  


What is enumerate() explain its uses?

1 Answers  


What is python's parameter passing mechanism?

1 Answers  


How do you make 3d plots/visualizations using numpy/scipy?

1 Answers  


How do you clear a python shell?

1 Answers  


How can you keep track of different versions of code?

1 Answers  


Categories