Edexcel GCSE Computer Science · 1CP2
Specification 6.2.1 · Paper 2
Revise: Structural Components of ProgramsAn assignment statement stores a value. Python evaluates the expression on the right of
=and stores the result in the name on the left. The last line therefore replaces the previous value ofnumPeoplewith the number entered by the user.