On 2007-05-16 20:02:18 -0600, walterbyrd <[EMAIL PROTECTED]> said:

> 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.
a = '   three spaces'
print len(a) -len(a.lstrip())

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

Reply via email to