Skip to content

Instantly share code, notes, and snippets.

@lgliducik
Last active November 29, 2022 13:48
Show Gist options
  • Save lgliducik/2ea741410bff0a34ea20977d4ece2f8d to your computer and use it in GitHub Desktop.
Save lgliducik/2ea741410bff0a34ea20977d4ece2f8d to your computer and use it in GitHub Desktop.
numbers = [2, 5, 13, 7, 6, 4]
size = 6
sum = 0
avg = 0
index = 0
while index < size:
sum = sum + numbers[index]
index = index + 1
avg = sum/size
print("avg = ", avg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment