INDEPENDENT PRACTICE · PYTHON IDLE
Practical Programming Assignments
Choose the assignment directed by your teacher. Write your code, run it in Python IDLE, and check the output.
GREEN
Code Explorer
My Mini Introduction
Write a Python program that asks the user for their name and favourite colour. Store each response in a separate variable. Display a sentence that includes both details.
Test: Run your program twice using different answers. Check that the displayed sentence changes correctly.
AMBER
Code Creator
UAE Visitor Profile
Write a Python program that asks a visitor for their name, favourite UAE place, and the activity they would like to do there. Store each response in a meaningful variable. Display a neatly organised three-line profile using print().
Test: Execute the program with two different visitor profiles and verify every response appears in the correct line.
PALE BURGUNDY
Code Innovator
Sustainable UAE Idea Collector
Design a Python program that collects a user's name, one environmental issue they notice, and one action they suggest to make the UAE more sustainable. Store each response in a separate, meaningful variable. Display a personalised message that presents all three responses clearly.
Test and improve: Run the program with two different sets of responses. Check that the output is clear and that each response is stored and displayed in the correct place. Be ready to explain how the variables make your program reusable.
Before you finish
- My program uses
input()to collect information. - Each response is stored in a meaningful variable.
- My program uses
print()to display the information. - I ran the program in Python IDLE and checked the output.