I am making an AI, I want the code to understand that something is an integer
elif inp==("i am", int):
print("You are "x" years old")
inp is my variable
elif="i am", int ,"years old":
print("You are", int ,"years old")
This is what I want. But for it to actually work, I want it to understand that there is an integer there.
If they said "I am awesome" it would do it, but if they put "I am 14" it would print You are "x" years old. I am ok with the printing bit and with how old they actually are. But, I just want the code to recognize that there is a number there.