Python (3)
Python (3)
Assignment Objective:
Learn to use for loops, while loops, nested loops, and break/continue to repeat tasks,
automate counting, and control the flow of your code.
📘 Instructions:
1. Complete all tasks below in one Python file.
2. Add comments to explain what each part of your code does.
4. Upload it to your GitHub and submit the link in the lesson's About section.
✍️ Tasks:
✅ Task 1: Using a for Loop
Print numbers from 1 to 10 using a for loop.
✅ Task 2: Using a while Loop
Print numbers from 1 to 5 using a while loop.
1. 1x1=1
2. 1x2=2
3. 1x3=3
4. ...
5. 3x3=9
📤 Submission:
1. Save your file as loops_assignment.py.
3. Submit the GitHub link in the About section of your lesson before 16th May 2025.