I keep hitting the else: portion of if statement any integer or string I enter goes to else:
def isThisAnInteger(isInt):
if isinstance(isInt, int):
#return isInt
print("Top of If: statement")
print(isinstance(isInt, int))
else:
#print("Please enter a valid number.")
print("Bottom of else: statement")
print(isinstance(isInt, int))
iStart = isThisAnInteger(input("Enter the start of the range: "))
iEnd = isThisAnInteger(input("Enter the end of the range: "))
I am expecting an integer to hit the first condition, while a string or float will fall to the else condition