Introduction
Step 1: Conditional Statements
age = 15
if age < 13:
print("You're a child.")
elif age < 18:
print("You're a teenager.")
else:
print("You're an adult.")
Output:
You're a teenager.
Step 2: Loops
For loop:
for i in range(5):
print(i)
Output:
0
1
2
3
4
While loop:
counter = 0
while counter < 5:
print(counter)
counter += 1
Output:
0
1
2
3
4
Conclusion
Congratulations! You’ve learned intermediate programming concepts like conditional statements and loops. These concepts will help you create more advanced programs and solve complex problems. Keep practicing and have fun! 🎉