Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save malkinfedor/33e9058e08c92771b74382af00dddd14 to your computer and use it in GitHub Desktop.

Select an option

Save malkinfedor/33e9058e08c92771b74382af00dddd14 to your computer and use it in GitHub Desktop.
array = [1,2,3,4]
diff = []
# найти среднеарифметическое
result = float(sum(array)) / max(len(array), 1)
print(result)
i = 0
for number in array:
min = number
diff[i] = number - result
if min <
i = i + 1
print(number)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment