Currently, I'm having an error, where
w = float(input("Enter weight(grams): "))
print (w/1000,'kg')
returns
Enter weight(grams): 3000
3.0 kg
When attempting to convert from grams to kg in something. Problem is the space between the 3.0 and the kg which I cannot seem to find an answer for. I really dislike the spacing default within the print function and .strip() doesn't seem to be working for me.
My desired result is
Enter weight(grams): 3000
3.0kg