AQA GCSE Computer Science (8525/1B) · Paper 1 Revision Workbook
Practise writing Python from scratch for Paper 1 — covering numeric inputs, if/elif/else selection, modulo (%) checks, and accumulator loops. Draft your solutions, test your logic with interactive tools, and mark your work against official AQA criteria out of 20 marks.
Exam Technique Reference
Every Skill 1 freehand coding question combines these foundational Python patterns. Keep them in mind before attempting Questions 1A through 1D:
input() always returns text (str). Cast whole numbers with int(input()) and decimal values with float(input()).
v % n == 0 tests whether v is divisible by n. Always test the strictest threshold first so general branches do not prematurely consume input.
Initialise total to 0 before the loop, repeat the exact count, run a single input() inside the loop to add, and print() after.
Practice Question 1A · 3 Marks
A theme park gives out prizes to every visitor entering through the turnstile, numbered v from 1 to 30:
State the Python code that should replace labels L1, L2, and L3 below.
Condition only (omit elif / colon)
Output for every 3rd visitor
Output for all other visitors
Hint for Question 1A
Look at the output immediately below L1: print("Free meal"). Which rule triggers a free meal? Write a modulo (%) test for divisibility by 10, and complete L2 and L3 using print(...) with exact prize strings.
Self-Marking Checklist
Practice Question 1B · 4 Marks
A school stationery shop sells three items:
Write a Python program to calculate the total takings for the day. Your program must:
Write all three inputs, the calculation, and the output (Tab inserts 4 spaces).
Hint for Question 1B
Each item quantity is a whole number, so cast each input with int(input()) and store it in its own variable. Multiply each variable by its price (0.5, 2, 8.5), add all three products into total, then print(total).
Self-Marking Checklist
Practice Question 1C · 8 Marks
Write a Python program that calculates the delivery cost for an online parcel order based on its weight in kilograms (kg).
The cost is calculated as follows:
Your program should get the user to enter the weight of the parcel and output the total delivery cost.
Use if, elif, and else. Think carefully about which condition is evaluated first.
Hint for Question 1C
Start with weight = int(input()) or float(input()). Check if weight > 20: first so heavy parcels get a flat 60 without the £5 handling fee. Then use elif weight > 10: for 5 + (weight * 2) and else: for 5 + (weight * 4).
Examiner note: Both int(input()) and float(input()) are accepted. Testing <= 10 first (followed by elif weight <= 20: and else: cost = 60) is also completely valid and earns full marks.
Self-Marking Checklist (8 marks total)
Practice Question 1D · 5 Marks
The program below gets four daily rainfall readings (in mm) and outputs the total rainfall.
Rewrite the program so that it achieves the exact same result using an iteration structure that contains only one input() statement.
Must contain exactly one input() call inside a loop repeating 4 times.
Hint for Question 1D
Set totalRain = 0 on line 1 before the loop starts. Use for i in range(4): to repeat four times. Inside the indented loop, read one rain = int(input()) and add it to totalRain. Finally, unindent to print(totalRain) once after the loop finishes.
Self-Marking Checklist (5 marks total)