Skip to content
MathsGenie logo
Open app

Course home

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

Operators

EasyMedium
1234567
Question 4

Fiona has written a Python program to help Maya calculate geographical statistics. Look at the following line of code from her program:

averageElevation = (peakElevation + valleyElevation) / 2

Give one reason why there are brackets around peakElevation + valleyElevation.

[1]

Operators Questions

  1. IGCSE
  2. /Computer Science
  3. /Operators