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

D-Man dsh8290@rit.edu
Wed, 3 Jan 2001 23:48:36 -0500


>>> str = "234"
>>> str.isdigit()
1
>>> str2 = "asdf"
>>> str2.isdigit()
0
>>> 

-D

On Wed, Jan 03, 2001 at 06:14:18PM -1000, Brett wrote:
> I'm trying to get input and checking to see if it's a number.