Task:
Ask the user to enter a number.
Use a while loop to keep asking for numbers.
If the number is 0, break the loop.
If the number is even, print a message.
If the number is odd, print a different message.
💡 Add a check that **continue**s if the number is negative (skip it and ask again).
Task:
Set a secret number in the program.
Ask the user to guess the number using a while loop.
Give hints if the guess is too high or low.
Break the loop when the correct number is guessed.
💡 Add a continue if the user enters a number below 1 or above 100 — remind them to guess within the range.
Task:
Use a for loop with range(3) to ask 3 users for their age.
Classify them:
0–12: Child
13–19: Teenager
20–64: Adult
65+: Senior
Use if-elif-else and print their group.
💡 Add a continue if the age is negative, with a warning message.
Task:
Ask the user to enter a number.
Use a for loop with range(1, 11) to show the times table from 1 to 10.
💡 Challenge: Also use range(10, 0, -1) to print it in reverse.
💡 Bonus: Use a break if the result goes over 50.
Task:
Ask the user for a starting number.
Use a while loop to count down to 0.
Print “Blast off!” when done.
💡 Add a continue to skip printing odd numbers.
💡 Challenge: Use a for loop with range(start, -1, -1) to do the same.
Task:
Ask the user for a number.
Use a for loop with range(2, number+1, 2) to add up all even numbers up to that number.
Print the final sum.
💡 Challenge: Break the loop early if the sum goes over 100.
Task:
Ask the user to enter a password.
Use a while loop to keep asking until they enter the correct one.
If the user enters “exit”, break the loop.
If the password is too short (less than 6 characters), continue and give a warning.
Print “Access granted” when the correct password is entered.
Task:
Simulate ninja jump training using a for loop with range(5).
On each loop, print the jump number.
If jump number = 3, print “Super jump!” and continue (skip the rest).
If jump number = 4, break and say “Training complete!”.
Task:
Use a for loop with range(1, 21) to print numbers from 1 to 20.
Use continue to skip multiples of 3.
Print the rest.
💡 Challenge: Try the same with a while loop and a counter.
Task:
Use a for loop with range(10, 0, -1) to simulate a countdown of ninja ranks.
Print each rank.
If the rank is 5, break and print “Mid-rank check!”.
💡 Bonus: Add continue to skip printing rank 7.