title: Why i cannot use "int " here?
body: <p>My interperter version is python 3.5, and when i input a floating number, the error ocurred.
  This is my code:</p>
  
  <pre><code>a = input()
  weight = int(a)
  print(weight)
  </code></pre>
  
  <p>and the error is:</p>
  
  <pre><code>34.44
  Traceback (most recent call last):
  File "C:/Text/Project_SDC/Astar_Algorithm/test.py", line 2, in &lt;module&gt;
  weight = int(a)
  ValueError: invalid literal for int() with base 10: '34.44'
  </code></pre>
  
  <p>so if i still want to use int type, is there any solution for the error??</p>