1. Introduction to Python
| History and Features of Python |
| Setting up Python (Installation & IDEs: IDLE, VS Code, PyCharm, Jupyter Notebook) |
| Running Python Scripts (Interactive & Script Mode) |
2. Python Basics
| Writing and executing Python scripts |
| Variables and Data Types (int, float, str, bool, NoneType) |
| Type Conversion and Type Casting |
| Basic Input/Output Operations (print(), input()) |
| Comments and Docstrings |
3. Operators and Expressions
| Arithmetic Operators (+, -, *, /, %, **, //) |
| Relational (Comparison) Operators (==, !=, >, <, >=, <=) |
| Logical Operators (and, or, not) |
| Bitwise Operators (&, |, ^, ~, <<, >>) |
| Assignment Operators (=, +=, -=, *=, /=) |
| Identity (is, is not) and Membership (in, not in) Operators |
4. Control Flow Statements
| Conditional Statements (if, if-else, if-elif-else) |
| Loops: for loop, while loop |
| Loop Control Statements (break, continue, pass) |
5. Strings and String Manipulation
| String Creation and Operations |
| String Methods (len(), lower(), upper(), replace(), split(), join()) |
| String Formatting (f-strings, .format(), % formatting) |
| Escape Characters |
6. Data Structures (Lists, Tuples, Sets, Dictionaries)
| Lists: Definition, Accessing, Slicing, Methods (append(), pop(), sort(), reverse()) |
| Tuples: Immutable nature, Indexing, Methods |
| Sets: Unique Elements, Set Operations (Union, Intersection, Difference) |
| Dictionaries: Key-Value Pairs, Accessing, Methods (keys(), values(), items()) |
7. Functions in Python
| Defining and Calling Functions |
| Function Arguments (Positional, Keyword, Default, Variable-length *args, **kwargs) |
| Return Statement |
| Recursive Functions |
8. Exception Handling
| Understanding Errors (SyntaxError, TypeError, NameError, etc.) |
| try, except, finally, else blocks |
| Raising Exceptions (raise statement) |
| Custom Exceptions |
9. File Handling
| Opening and Closing Files (open(), close()) |
| Reading and Writing Files (read(), write(), readlines()) |
| File Modes (r, w, a, rb, wb) |
| Using with statement for file handling |
|