Python Programming
2 min readJan 7, 2023
Introduction To Python
- Why Python
- Application areas of python
- Python implementations
- Python versions
- Installing python
Writing and Executing First Python Program
- Using interactive mode
- Using script mode
- General text editor and command window
- Idle editor and idle shell
- Understanding print() function
- How to compile python programs explicitly
Python Conditional Statements
- If statement
- If else statement
- If elif statement
- If elif else statement
- Nested if statement
Looping Statements
- While loop
- For loop
- Nested loops
- Pass, break and continue keywords
Standard Data Types
- Int
- Float
- Boolean
- Str
- Datetime
String Handling
- What is string
- String representations
- Unicode string
- String functions
- String indexing and slicing
- String formatting
Python List
- Creating and accessing lists
- Indexing and slicing lists
- List methods
- List comprehension
Python Tuple
- Creating tuple
- Accessing tuple
- Immutability of tuple
Python Set
- How to create a set
- Iteration over sets
- Python set methods
Python Dictionary
- Creating a dictionary
- Dictionary methods
- Accessing values from a dictionary
- Updating dictionary
- Iterating dictionary
- Dictionary comprehension
Python Functions
- Defining a function
- Calling a function
- Types of functions
- Positional arguments, keyword arguments
- Default arguments, non-default arguments
- Arbitrary arguments, keyword arbitrary arguments
- Function return statement
- Nested function Function as an argument
- Function as a return statement
- Decorator function Closure Map(), filter(),
- Anonymous or lambda function
Exception Handling
- Difference between syntax errors and exceptions
- Try, except, finally, raise, assert
Modules & Packages
- Why modules
- Script v/s module
- Importing module
- Standard v/s third-party modules
- Why packages
- Understanding pip utility
Regular Expressions(Regex)
- Need for regular expressions
- Re module — Functions /methods related to regex
- Meta characters & special sequences