PDF 1
PDF 1
Python is a versatile, high-level programming language known for its simplicity and readability.
programming.
- Widely used for web development, data analysis, machine learning, automation, and more.
2. What are data variables in Python? Explain the rules for variable declaration and provide
- Integer: x = 10
- Float: y = 3.14
Operators in Python:
- Logical Operators: and, or, not (e.g., True and False = False)
4. Write and explain a simple Python program that includes input, processing, and output.
Program Example:
```
# Input
# Processing
# Output
print(greeting)
```
Explanation:
Differences:
- Strings and tuples are immutable, while lists and dictionaries are mutable.