There is no is_int, we just need to try to convert and catch the exception, if there is one.

examples/basics/is_number.py
from __future__ import print_function

def is_float(input):
  try:
    num = float(input)
  except ValueError:
    return False
  return True

def is_int(input):
  try:
    num = int(input)
  except ValueError:
    return False
  return True

print( is_float("23") )      # True
print( is_float("23.2") )    # True
print( is_float("23x") )     # False
print( '-----' )             # -----
print( is_int("23") )        # True
print( is_int("23.2") )      # False
print( is_int("23x") )       # False