I am learning python on repl.it The problem is Whenever I take a input from user and compare it with .isalnum() The method always gives the output as True. Even if the input is only digits or only numbers
a = input("Enter a value")
If a.isalpha():
print "Enter a correct value"
else:
print a
I have made sure not to include any whitespaces but the output is only to. Enter a correct value
Help appreciated