Edexcel GCSE Computer Science · 1CP2
Specification 6.1.4 · Paper 2
Revise: Code Readability and MaintenanceWhite space includes spaces, tabs and blank lines. Spaces around operators make an expression easier to scan:
total_cost = ticket_count * ticket_priceis clearer thantotal_cost=ticket_count*ticket_price. Blank lines help the reader see where one task ends and another begins.