Professional Documents
Culture Documents
A0 Worksheet - Let Me Check
A0 Worksheet - Let Me Check
Lesson 1 – Warm up
Let me check
Answers
1 2 3 4 5
Task 2 . Walkthrough
Read the Python program below:
Note: There may be errors in the program and/or it may not behave as expected.
1 a = int(input())
2 b = int(input())
3 avg = b + a / 2
4 print(avg)
Question
When this program is executed, assuming the user types 12 and 2 on the keyboard, what will be
displayed on the screen?
A. 2 + 12 / 2
B. 13
C. 7
D. 8
Answer
Task 3 . Walkthrough
Read the Python program below:
Note: There may be errors in the program and/or it may not behave as expected.
1 a = int(input())
2 b = int(input())
3 max = a
4 if b > max:
5 max = b
6 print(max)
Question
When this program is executed, assuming the user types 12 and 2 on the keyboard, what will be
displayed on the screen?
A. Nothing will be displayed on the screen
B. 2
C. 12
D. max
Answer
Year 9 – Python programming with sequences of data Activity
Task 1 . Identify
Look at the Python program below:
Note: There may be errors in the program and/or it may not behave as expected.
Task 2 . Online-Python.com
Go to the website: www.online-python.com
Write the line of codes in task 1 above
Run the program and write down the output
Change the greater than to a less than
Run the program again and write down the output.