Paul McGuire wrote:

On May 16, 9:02 pm, walterbyrd <[EMAIL PROTECTED]> wrote:

The strings start with whitespace, and have a '*' or an alphanumeric
character. I need to know how many whitespace characters exist at the
beginning of the string.


using buitlin function len() and lstrip()

   ax = '    asdfjlwese   asdfasl '
   len( ax ) - len( ax.lstrip() )

sph
--
HEX: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to