stuffthing
By: a guest | Mar 18th, 2010 | Syntax:
Python | Size: 0.21 KB | Hits: 57 | Expires: Never
# This Python file uses the following encoding: utf-8
string = 'blue00ssèÇò'
pos = 0
for x in string:
if 'a' <= x <= 'z' or '0' <= x <= '9':
pos = pos + 1
else:
break
print pos