In Python, you can open files in different modes depending on how you want to interact with the file. See the following table for an explanation of these modes.
Modes for opening files in Python
r - Read...
Python is a general purpose, object-oriented programming language that has achieved popularity because of its readability and clear syntax. Guido van Rossum created Python in late 1980s. It is a ‘high level’ scripting language...