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,
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to