Typical 6-Mark Exam Paper Question
[6 marks]
The Secret: 6-mark questions are never just about "writing code". They test your ability to deconstruct requirements.
I
Input
What variables do you need to ask for? Always check if casting (int/float) is required.
name = input()
price = float(input())
price = float(input())
P
Process
The calculation. Are you adding to a total? Comparing values with IF statements?
total = total + score
if val > max:
if val > max:
O
Output
Final display. Ensure your messages are descriptive and final values are printed.
print("Average:", avg)
L
Loop
Repetition. Do you need to run this once? 10 times? Or until a valid input is entered?
while valid == False:
for i in range(10):
for i in range(10):
Active Scenario Analysis
Begin Deconstruction
Click the button below to extract coding instructions from the exam paper text.
Question Fragment
[6 marks]
IDE - solution.py
Python 3.12
Awaiting instructions...