[Swlug] Quick Python question
Colin Law
clanlaw at gmail.com
Thu Feb 3 07:38:34 UTC 2022
On Thu, 3 Feb 2022 at 00:59, Rhys Sage via Swlug <swlug at mailman.lug.org.uk>
wrote:
> I'm partly using a book to learn Python but mostly having a bash at it
> using the Pocket Reference by Mark Lutz.
>
> I'm trying to work out whether NumberOne is numeric and each time I run it
> I get a problem when the condition falls on False.
>
> if ((NumberOne.isnumeric == False) and (NumberTwo.isnumeric == False)):
>
Did you mean or rather than and?
Coln
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/swlug/attachments/20220203/68deebad/attachment.htm>
More information about the Swlug
mailing list