Я запускаю файл с 2 функциями, он работает правильно, но при его запуске отображается следующее:
Enter your weight (in Kilograms): 81
Enter your height (in Centimeters): 175
Enter your age: 20
Enter 5 if you are a male or -161 if you are female: 5
('You have to consume between: ', 1447.0, 'and', 1537.4375, 'calories a day.')
Ниже мой код:
def calBurned(weight:float, height:float, age: int, genderValue:float)->str:
TMB = (10*weight)+(6.25*height)-(5*age) + genderValue
minCal = TMB*0.80
maxCal = TMB*0.85
text = "You have to consume between ", minCal, "and", maxCal, "calories a day."
return text
def calRec()->None:
weight = float(input("Enter the your weight (in Kilograms): " ))
height = float(input("Enter your height (in Centimeters): "))
age = int(input("Enter your age: "))
genderValue = float(input("Enter 5 if you are a male or -161 if you are female: "))
calRecom= calBurned(weight, height, age, genderValue)
print(calRecom)
calRec()
Is можно вернуть только текст без всех (',')?