В команду по баскетболу принимают учеников с ростом от 170 см. По введенному росту определите попал ли человек в команду задача python пжпжпжпжпжа 40 баллов дам
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.")
Answers & Comments
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.")
Ответ:
Объяснение:
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.")