Предмет: Информатика, автор: verareitman2020

В команду по баскетболу принимают учеников с ростом от 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.")

Похожие вопросы
Предмет: Русский язык, автор: Аноним