IsNumberType()

Sarah Orchard saraho at woosh.co.nz
Sun Feb 3 16:46:00 EST 2008


I am writing an IF statement which basically says if the value is a
str.isdigit() it should run the command or ELSE print please enter a numeric
value next time.

 

Even when I enter a number though ie. An integer it is going straight to the
else command - what code do I need to add that will recognise the input
value is an integer or a numeric value rather than text??? 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080204/6a772c16/attachment.html>


More information about the Python-list mailing list