Introduction to Python
Python is a high-level, interpreted programming language known for its simplicity and readability.
It is widely used in web development, data analysis, machine learning, and automation.
Key Features of Python
1. Easy to Learn and Use
2. Interpreted Language
3. Dynamically Typed
4. Extensive Libraries and Frameworks
5. Cross-Platform Compatibility
Variables and Data Types
- Variables: Containers for storing data values. Example: x = 5
- Data Types: int, float, str, list, tuple, dict, set, bool
Example:
x = 10 # int
y = 3.14 # float
name = "Alice" # string
Control Statements
- If-Else Statement: