Data types and structures

EasyMedium
12345678910111213141516171819
Question 17
Easy

Study the following Python code:

def calculate_average(scores):
    total = 0
    for score in scores:
        total = total + score
    return total / len(scores)

high_scores = [85, 92, 78, 95, 88]
print(calculate_average(high_scores))

Identify the identifier (name) of a data structure used in this code.

[1]

Data types and structures Questions

  1. IGCSE
  2. /Computer Science
  3. /Data types and structures