Different file processing modes supported by python?



Different file processing modes supported by python?..

Answer / Cheta Saxena

In Python, there are four primary built-in file modes: 'r' (read mode), 'w' (write mode), 'a' (append mode), and 'x' (exclusive create mode). Additionally, 'b' can be used to open binary files.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

How do you copy an object in python?

1 Answers  


Explain how to delete a file in Python?

1 Answers  


What is difference between yield and return?

1 Answers  


What exactly are pandas?

2 Answers  


Explain important characteristics of python objects?

1 Answers  


What does while true do in python?

1 Answers  


Please explain in python what is slicing?

1 Answers  


What is *kwargs and **kwargs?

1 Answers  


What do you mean by overriding methods?

1 Answers  


Explain python variable scope error?

1 Answers  


Write a command to convert a string into an int in python.

1 Answers  


Difference between __str__ and __repr__ in python?

1 Answers  


Categories