Hi! I was just experimenting with functions and PygLatin:
Could anyone tell me what's wrong with my code?
I wanted to see if I entered an integer would it return "Thank You"
Why isn't it working?
print "Welcome to Python" original = raw_input("Enter an Integer") def integer(n): if type(n)==int: return "Thank You" else: return "Try Again"
Welcome to Python
Enter an Integer 2