[Tutor] FW: query
Emile van Sebille
emile at fenx.com
Wed Jun 24 18:15:05 CEST 2015
On 6/24/2015 5:58 AM, abhijeet560 at yahoo.in wrote:
> Hey guys can anybody tell me what's wrong with this code: The code is below?
> Actually the point is that when we put "34h4" type of value it's an valueerror
> but here no handling is been performed by the python ???
> while 1:
> number=int(input("Enter the number which u want to check for odd and even :"))
You're probably seeing the error here, which is outside your try/except
block, hence the except not working as you expect.
> try :
Emile
More information about the Tutor
mailing list