79203267

Date: 2024-11-19 11:44:24
Score: 1.5
Natty:
Report link
numbers = [10, 20, 30, 40, 50]

average = sum(numbers) / len(numbers) print("The average is:", average)

in python it is good to do the calculations separately, because it interprets each instruction not compiles.Therefore make the sum separately and divide by the length.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Andy