[Tutor] how to separate the digital and the alphabeta

lina lina.lastname at gmail.com
Thu Nov 3 17:30:18 CET 2011


Hi,

['1AB','57GL', '76LE']

How can I extract 1, 57 , 76 out?

except the one I tried as:

>>> for i in range(len(a)):
	print(a[i][:-2])

	
1
57
76

are there some way to tell the difference between the [0-9] and [A-Z],

Thanks for the help (you will give and you have given).

Best regards,


More information about the Tutor mailing list