temperature = 30
if temperature > 25:
print("It's a hot day!")
else:
print("It's a pleasant day.")
Loops are equally important. Use `for` loops to iterate over a sequence (like a list of names) and `while` loops to repeat an action as long as a condition is met.

## Deep Dive into Data Structures
Once you understand basic variables, you need to manage collections of data. This is where Python truly shines.
* **Lists:** Ordered and changeable collections. Perfect for keeping track of items. Example: `fruits = ["apple", "banana", "cherry"]`.
* **Dictionaries:** Key-value pairs. Think of this like a real dictionary or a database record. Example: `user = {"id": 1, "username": "malibongwe"}`.
* **Tuples:** Ordered but unchangeable. Used for data that shouldn't be altered after creation.
* **Sets:** Unordered collections of unique items. Great for removing duplicates from a list.
## Functions and Modular Code
Writing code in one long file is a recipe for disaster. Functions allow you to wrap a block of code and reuse it whenever needed. This makes your code "DRY" (Don't Repeat Yourself).
```python
def greet_user(name):
return f"Hello, {name}! Welcome to Python programming."
message = greet_user("Developer")
print(message)