A Python is a general-purpose, high-level, interpreted language with easy syntax and dynamic semantics.
- it was created by Guido van Rossum in 1989.
- Python is an object-oriented programming language, it is called interpreted language because python doesn't convert code into machine code, it simply converts the program code to bytecode.
- within python compilation happens but it's not into a machine language.
- within the environment of python the code is executing in the form of byte code.
- byte code being created and which is not further understood by the CPU.
- CPU doesn't know what is bytecode, so we actually need an interpreter.
- interpreter is a python virtual machine (PVM) is the one which executes the bytecode.
Syllabus:
UNIT - II
FILES: File Objects, File Built-in Function [ open() ], File Built-in Methods, File Built-in Attributes, Standard Files, Command-line Arguments, File System, File Execution, Persistent Storage Modules, Related Modules Exceptions: Exceptions in Python, Detecting and Handling Exceptions, Context Management, *Exceptions as Strings, Raising Exceptions, Assertions, Standard Exceptions, *Creating Exceptions, Why Exceptions (Now)? Why Exceptions at All?, Exceptions and the sys Module, Related Modules Modules: Modules and Files, Namespaces, Importing Modules, Importing Module Attributes, Module Built-in Functions, Packages, Other Features of Modules
Click here to download the material Download
No comments:
Post a Comment