Skip to content

Course home

Develop code

Develop code

EasyMediumHard
123456789101112131415161718192021222324
Question 12

Consider the following Python function:

def calc(x,y):
z=0
for i in range(x):
z=z+y
return z

Identify one programming technique that could be used to improve the readability of this code.

[1]
Markscheme

Develop code Questions

  1. IGCSE
  2. /Computer Science
  3. /Develop code

62 exam-style questions on Edexcel IGCSE Computer Science Develop code. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank