# Define a list of numbers
numbers = [15, 20, 25, 30, 35]
# Calculate the average of the numbers
average = sum(numbers) / len(numbers)
code
Calculate Average of Numbers
This Python code calculates the average of a list of numbers (numbers) using the sum() function and dividing by the length of the list. The comments provide explanations for each part of the code.
Sum
List
Average
len