Python final qb
Python final qb
(Any four)
Easy to Learn and Use
Interactive Mode
Expressive Language
Interpreted Language
Cross-platform Language
Portable
Free and Open Source
Object-Oriented Language
Extensible
Large Standard Library
GUI Programming Support
List different modes of opening file in Python Modes for opening file:
• r: open an existing file for a read operation.
• w: open an existing file for a write operation. If the file already contains some data then it
will be overridden.
• a: open an existing file for append operation. It won‟t override existing data.
• r+: To read and write data into the file. The previous data in the file will be overridden.
• w+: To write and read data. It will override existing data.
• a+: To append and read data from the file. It won‟t override existing data.