So i'm new to python, but used to code in Lua a lot. I'm having an issue with something basic that should be working but isn't.
def test():
age = input("Enter Age:")
if type(age) is int:
print("Is integer.")
else:
print("Is not integer.")
test()
So basically, I run this, then I enter an integer, like "18". The expected output would be "Is integer", but for some reason, it isn't; it's "Is not integer."