Составить программу нахождения общего роста и среднего роста членов семьи (оформить в массив) Python
можете рандом рост брать (3 человека) мама папа я
Ответы
Ответ дал:
0
Объяснение:
import random
# list to store the heights of the family members
family_heights = [random.randint(150, 190) for i in range(3)]
# add the heights of all the family members
total_height = sum(family_heights)
# calculate the average height
average_height = total_height / len(family_heights)
# print the results
print("Family Heights:", family_heights)
print("Total Height:", total_height)
print("Average Height:", average_height)
Fchchchv:
сделай лучший ответ
Вас заинтересует
3 месяца назад
4 месяца назад
4 месяца назад
1 год назад
1 год назад
7 лет назад