Skip to content
MathsGenie logo
Open app

Course home

  1. IGCSE
  2. Computer Science Edexcel
  3. Question bank

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]

Develop code Questions

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