Skip to content

Instantly share code, notes, and snippets.

@o-nnerb
Created May 7, 2023 13:22
Show Gist options
  • Save o-nnerb/68d2649e0f24f8a714baa97e94504ca9 to your computer and use it in GitHub Desktop.
Save o-nnerb/68d2649e0f24f8a714baa97e94504ca9 to your computer and use it in GitHub Desktop.
# Calculates the mean of a list of numbers
def calculate_mean(numbers):
total = sum(numbers)
return total / len(numbers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment