+ 1
WHAT THIS DOESNT WORK???? *TRIGGERED* -sorry me-
#normal mass calculator mass = input('your height? ') a = (int(mass) -100) *1.25 print("your normal mass is..." + a)
3 Respuestas
+ 4
Convert a to string
print('Your normal mass is '+str(a))
Or:
print('Your normal mass is {}'. format(a))
+ 1
*makes it ~420s ago* but, thank you
+ 1
try this:
print("your normal mass is... "+str(a))
a is integer type so,
In your code you concatenate string with int which is not possible so remember that string can be concatenate with string.