title: How do I make an if statement that can only take integers ? python 3
body: <p>I'm really new to python and I'm trying to make an if else statement that can only take integers. I'm trying to make something like this:</p>
  
  <pre><code>num = (input("Enter a number:"))
  if (num is an int):
     num = num*2
  elif (num is a str):
     print("please enter a number")
  </code></pre>