PYTHON NOTES
2021 PYTHON PROGRAMMING FROM A-Z: BEGINNER TO EXPERT
-SUNIL
, 2
TABLE OF CONTENTS:
1. Python Syntax 5
1.1 Line Structure
1.2 Comments
1.3 Joining Lines
1.4 Multiple Statements on a Single Line
1.5 Indentation
2. Basic Data Types 10
2.1 Variables
2.2 Integers and Floats
2.3 Strings
2.4 String Manipulation
2.5 String Indexing
2.6 String Slicing
2.7 Boolean
2.8 Printing
2.9 Mini Project-1
3. Python Operators 24
3.1 Arithmetic Operators
3.2 Assignment Operators
3.3 Comparison Operators
3.4 Logical Operators
3.5 Identity Operators
3.6 Membership Operators
3.7 Bitwise Operators
4. Advanced Data Types 38
4.1 Lists
4.2 List Slicing and Indexing
4.3 Tuples
4.4 Sets
4.5 Dictionaries
4.6 When to use each one
4.7 Compound Data Types
4.8 Practice Test-1
5. Control Flow Part 1 50
5.1 Basic Conditional Statements
5.2 More Conditional Statements
5.3 For Loops
, 3
5.4 While Loops
6. Control Flow Part 2 59
6.1 Break Statement
6.2 Continue Statement
6.3 Zip Function
6.4 Enumerate Function
6.5 List Comprehension
7. Python Functions 66
7.1 Introduction to Functions
7.2 Help Function
7.3 Defining Functions
7.4 Variable Scope
7.5 Doc Strings
8. User Input and Error Handling 74
8.1 Introduction to Error Handling
8.2 User Input
8.3 Syntax Errors
8.4 Exceptions
8.5 Handling Exceptions Part 1
8.6 Handling Exceptions Part 2
9. Python Advanced Functions 85
9.1 Lambda Functions
9.2 Functions Args and Kwargs
9.3 Iterators
9.4 Generators and Yield
9.5 Map Function
9.6 Filter Function
10.Python Scripting and Libraries 98
10.1 Python Scripts
10.2 Python IDE
10.3 Python Code Editors
10.4 From Jupyter Notebook to VS Code Part 1
10.5 From Jupyter Notebook to VS Code Part 2
10.6 Importing Scripts
10.7 Standard Libraries
10.8 Third Party Libraries
, 4
11.NumPy 107
11.1 Introduction to NumPy
11.2 Why to use NumPy
11.3 NumPy Arrays
11.4 Reshaping, Accessing and Modifying
11.5 Slicing and Copying
11.6 Inserting, Appending and Deleting
11.7 Array Logical Indexing
11.8 Broadcasting
12.Pandas 123
12.1 Introduction to Pandas
12.2 Pandas Series
12.3 Pandas Series Manipulation
12.4 Pandas DataFrame
12.5 Pandas DataFrame Manipulation
12.6 Dealing with Missing Values
13.Intro to OOP 134
13.1 Functional vs OOP
13.2 OOP Key Definitions
13.3 Create our First Class
13.4 Creating and Using Objects
13.5 Modify Attributes
14.Advanced OOP 139
14.1 Python Decorators
14.2 Property Decorator
14.3 Class Method Decorator
14.4 Static Methods
14.5 Inheritance