title: Python - Removing a space from a print function
body: <p>Currently, I'm having an error, where</p>
  
  <pre><code>w = float(input("Enter weight(grams): "))
  print (w/1000,'kg')
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>Enter weight(grams): 3000
  3.0 kg
  </code></pre>
  
  <p>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.</p>
  
  <p>My desired result is </p>
  
  <pre><code>Enter weight(grams): 3000
  3.0kg
  </code></pre>