Hi I am a beginner in python coding! This is my code:
while True:
try:
x=raw_input("Please enter a word: ")
break
except ValueError:
print( "Sorry it is not a word. try again")
The main aim of this code is to check the input. If the input is string than OK, but when the input is integer it is an error. My problem is that the code with the format integer too, i dont get the error message. Can you help me where is the mistake?