+ 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)

25th Apr 2018, 3:47 PM
Климов Данил
Климов Данил - avatar
3 ответов
+ 4
Convert a to string print('Your normal mass is '+str(a)) Or: print('Your normal mass is {}'. format(a))
25th Apr 2018, 3:51 PM
Vivek Sivaramakrishnan
Vivek Sivaramakrishnan - avatar
+ 1
*makes it ~420s ago* but, thank you
25th Apr 2018, 3:53 PM
Климов Данил
Климов Данил - avatar
+ 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.
25th Apr 2018, 3:55 PM
Maninder $ingh
Maninder $ingh - avatar