Python in 30 Days: A Practical and Theoretical Approach for Beginner.

List Example
fruits = ["apple", "banana", "cherry"]
for fruit in fruits:
print(fruit)

Tuple
coordinates = (10, 20, 30)
for point in coordinates:
print(point)

Dictionary
person = {"name": "tom", "age": 30, "city": "dallas"}
# Loop through keys
for key in person:
print(key)
# Loop through values
for value in person.values():
print(value)
# Loop through key-value pairs
for key, value in person.items():
print(f"{key}: {value}")

Set
unique_numbers = {1, 2, 3, 4}
for number in unique_numbers:
print(number)

String
text = "Hello"
for char in text:
print(char)

Happy Coding and Stay Tuned 🙂
Kind is always cool !!!
Share knowledge to gain knowledge !!!!
Be kind and treat people with respect !!!
If you find my blog helpful, then please subscribe, claps and follow to support 🙂

The Impact of Technology on Mental Health: Pros and Cons
The Impact…
Beginner’s Guide to Home Workouts Without Equipment
Starting a…
10 Daily Habits That Boost Your Immune System
10 Daily…
How AI is Transforming Healthcare: From Diagnosis to Treatment
Artificial Intelligence…
Nutrition Tips to Complement Your Fitness Goals
Achieving your…
Benefits of Yoga for Mind and Body
Yoga has…