Python Basics
- What is Python? - A high-level, general-purpose programming language.
- Installation - Download from official website (Windows, macOS, Linux).
- First Program - Print "Hello World!" using print() function.
Data Types
- Integers - Numbers without decimal point.
- Floating Point - Numbers with decimal points.
- Strings - Text enclosed in quotes.
- List - Ordered collection of items.
Control Structures
- if-else Statements - Execute code based on condition.
- for Loops - Repeat a block of code multiple times.
- while Loops - Execute code while condition is true.
Functions
- Function Definition - Define a function using def keyword.
- Function Call - Invoke a function by its name.
- Return Statement - Send back a value from a function.
Error Handling
- try-except Blocks - Handle exceptions during program execution.
- Exception Types - Identify which exception occurred.
- finally Clause - Code that runs regardless of whether an error occurs or not.