Am I programming in Python mode?
mwh21 at cam.ac.uk
Wed Feb 2 16:45:30 CET 2000
Mordy Ovits <movits at lockstar.com> writes:
> for i in range(0, n):
I thought of that, but string.lowercase on my system contains lots of
accented characters, and I thought what I posted was closer in spirit
to the original effort. It also depends if you count é (e-acute) and e
(plain e) as different in this sense too - because if you don't then
the resulting string will contain too many of some letters, vowels in
particular - there are 10 different sorts of e in my string.letters -
and allowing for that is/was more than it's worth farting about with
for one USENET post.
PS: Your code has a stereotypical Python gotcha in it...
More information about the Python-list