I’m new to Python and programming altogether. As I’m going through my first few online lessons, I’m trying to add text to the users weight i.e. 70kg’s
My code that works is as follows:
weight_lbs = input(“Please enter your weight in pounds? “)
weight_kg = int(weight_lbs) * 0.45
print(weight_kg)
Nb: the above code works but does not display the text “kg’s” after the number.
I’ve tried: print(weight_kg) + “kg’s” or print(weight_kg + “kg’s”) or print(weight_kg), “kg’s”
Unfortunately I keep getting error, unsupported operand type(s) for +: ‘NoneType’ and ‘Str’
Thanks in advance
Mark