[Tutor] how to tell if strings have numbers in them

alan.gauld@bt.com alan.gauld@bt.com
Thu, 4 Jan 2001 17:39:18 -0000


> a list of 0-9 and tried for z in x/if z in list, and that 
> seems to work,  but its takes a lot of typing, is there 
> an existing function 

import string
if x in string.digits:
   # do it here

Alan g