Python
notes
✅ Python Basics – Topics
1) Introduction to Python
2) Python Installation & Setup
3) Python Syntax
4) Variables
5) Data Types
6) Keywords & Identifiers
7) Input & Output
8) Operators
9) Type Casting
10) Conditional Statements
11) Looping Statements
12) Control Statements (break, continue, pass)
13) Strings and String methods
14) Lists and List comprehensions
15) Tuples and its methods and operations
16) Sets and it’s methods and operations
17) Dictionaries
18) Functions
19) Built-in Functions
20) Modules & Packages (Basics)
21) file Handling (Basics)
22) Exception Handling (Basics)
23)Comments & Docstrings
✅ Object-Oriented Programming (OOPS) in
Python
1) Introduction to OOPS
2) Class and Object
3) __init__ (Constructor)
4) Instance Variables and it’s methods
5) Class Variables and it’s methods
6) static methods
7) Encapsulation
8) Access Modifiers (Public, Protected, Private)
9) Inheritance and it’s types
10) Polymorphism
11) Method Overriding and overloading
12) Abstraction
13) Abstract Classes
14) Interfaces (using abc module)
15) self keyword and super()keyword
16) Object Lifecycle
17) Garbage Collection
18) Destructor (__del__)
19) Operator Overloading
20) Method Resolution Order (MRO)
21) Dynamic Binding
Introduction
What is programming language:
A language is used to communicate between user and machine is called
programming language.
Types of programming language:
There are two types of programming language
1) Low level programming language
2) High level programming language
1) Low level programming language:
Low level language is a machine friendly language which machine only
knows 0 and 1’s
2) High level programming language:
High level language is a user friendly language which humans knows
English words or sentences.
Language translation:
To translate high level language into low level language we use this language
translation.
There are three types of language translation
1)Interpreter
2)compiler
3)Assembler
1)Interpreter:
Interpreter is a translator that helps to translate the high level language to
low level language.
It executes line by line
Interpreter process flow chart:
1 2 3
s 2)compile
Source code Interpreter output
2)compiler
A compiler is a computer program that translates a high level
language to low level language.
It executes the entire code at a time.
During compilation if the code executes without an error then .exe
file(executable file)will generate the out put.
Compiler process flowchart:
1 2 3 4
Source Machine
3)Assembler compiler output
code /byte code
3)Assembler:
Assembly is a translator which is also called middle level
language placed between machine language and high level
language.
It is closer to machine language.