title: Why does python selects the variable type as string
body: <p>When I write something like this</p>
  
  <pre><code>a = input("Please enter the number: ")
  Please enter the number: 12
  type(a)
  &lt;class 'str'&gt;
  </code></pre>
  
  <p>It always thinks as like its a string even tho its a number. Is there any solution to make python choose the variable type correct? What I am searching for is something like this</p>
  
  <pre><code>a = input("Please enter the number: ")
  Please enter the number: 12.5
  type(a)
  &lt;class 'float'&gt;
  </code></pre>
  
  <p>Is there any command to do this? Except from "eval", to pick the variable type correctly, when its a number as a integer, when it has decimal place as a float, when its bunch of letters its a string. Is there any command to do something like this?</p>