SmartStart_Curriculum_3.1_en
Smart Start Curriculum. Area 3: Algorithmic thinking 70 / 76 Exercise 2: Predict – Run – Explain – Modify Topic: Understanding input, conditions, and output Objective: To develop the ability to predict program behavior and explain how changes in inputs or conditions affect outputs. Format: Individual or pair coding activity. Instructions: Study the following simple Python program before running it: score = 65 if score >= 50: print("Passed") else: print("Try again") 1. Complete the following tasks: 2. Predict what the program will display. 3. Identify the input or variable used by the program. 4. Identify the condition being tested. 5. Explain why the program produces this output. 6. Change score = 65 to score = 40. Predict the result before running the program. 7. Change >= 50 to > 50. What happens if the score is exactly 50? 8. Modify the program so that the pass threshold is 60. Finally, explain how one small change in a condition can influence the result produced by an algorithm. Deliverable: A completed Predict → Run → Explain → Modify worksheet showing the original predictions, observed outputs, modifications, and explanations.
Made with FlippingBook
RkJQdWJsaXNoZXIy MjQzMTQ4