SDG Python Programming Project
PART 2 WORKSHEET
18/04/2026
Name: ___________________________
Chu Xuân Anh
Date: ___________________________
9IG2S1
Class: ___________________________
Learning Objective:
- Use input and output in Python
- Apply selection (if/else statements)
- Use iteration (while loop)
- Connect programming to SDGs
Success Criteria:
✔ Use input() correctly
✔ Use if/else statements
✔ Use a while loop
✔ Include a counter or limit
✔ Program runs without errors
Task 1: Recall Your SDG:
My chosen SDG is:
Using Energy
_________________________________________________________________________________________________________
What will your program measure/focus on? (e.g., water usage, electricity, plastic use)
- Energy usage
_______________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
Task 2: Plan Your Program:
Ask the user for: ________________________________
Store value in variable: _________________________
Check condition: _________________________________
If TRUE: ________________________________________
If FALSE: _______________________________________
Use while loop
Add counter or limit
Stop when: ______________________________________
Task 3: Write Your Python Code:
You may copy/paste actual working Python IDLE code here. You may
include versions of your code that still has errors and may not yet working
100% correct.
Task 4: Test Your Program:
Input Expected Output Actual Output
Task 5: Debug and Improve:
Did your program run without errors? ☐ Yes ☐ No
Did your loop work? ☐ Yes ☐ No
Did your counter/limit work? ☐ Yes ☐ No
Problem(s) fixed:
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
Improvements made:
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
Task 6: Reflection:
Why is using a loop important in your program?
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
How did the counter/limit improve your program?
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
Any additional coding statements that you added that was not part of the initial plan/idea
that made a big difference?
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________
_________________________________________________________________________________________________________