title: isinstance function in if statement python
body: <p>As part of a lcm program I'm creating, I want a condition to determine whether the result of an expression is <code>integer</code> or <code>float</code>. After looking online, I found the <code>isinstance</code> function, which outputs a <code>boolean</code>. I want to be able to use that in the statement, and execute the respective . How exactly do I code it? This is an example:</p>
  
  <pre><code>num=input("Enter a number: ")
  if isinstance(num,int):
    print("Float")
  else:
    print("Integer")
  </code></pre>