stuffthing
By: a guest | Mar 18th, 2010 | Syntax:
Python | Size: 0.27 KB | Hits: 32 | 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 'password is up to', pos
print 'password is', string[:pos]