python how to check if variable is integer code example Example: is int python isinstance(n, int) # n = 9, Returns True / n = 5.5, Returns False