The first ten lowercase letters are string.lowercase[:10] (unless, of course, you imported the standard library module string , -).
Other ways to "make a string of 10 characters": 'x'*10 (all ten characters will have lowercase letters x s ;-), ''.join(chr(ord('a')+i) for i in xrange(10)) (first ten lowercase letters again), etc. etc.; -.)
Alex Martelli Sep 14 '09 at 21:28 2009-09-14 21:28
source share