#try to avoid input function
a = int(input("Enter your age in years :"))
b = int(input("Enter your weight in KG :"))
if a >= 18 and a <= 50 and b >= 50 and b <= 70:
print("Your Okay for the fitness test.")
else:
print("Not Okay for the fitness test.")
Click the run button. Try to avoid input() function.