• Предмет: Информатика
  • Автор: verareitman2020
  • Вопрос задан 1 год назад

В команду по баскетболу принимают учеников с ростом от 170 см. По введенному росту определите попал ли человек в команду
задача python пжпжпжпжпжа 40 баллов дам​

Ответы

Ответ дал: GAUSS1
1

def basketball_team(height):

   if height >= 170:

       return True

   else:

       return False

height = int(input("Enter the height: "))

if basketball_team(height):

   print("You are eligible for the basketball team.")

else:

   print("You are not eligible for the basketball team.")

Ответ дал: arseniiromanchuk
0

Ответ:

Объяснение:

def basketball_team(height):   if height >= 170:       return True   else:       return Falseheight = int(input("Enter the height: "))if basketball_team(height):   print("You are eligible for the basketball team.")else:   print("You are not eligible for the basketball team.")

Вас заинтересует