Contact: aviboots(AT)netvision.net.il
39,950 questions
51,892 answers
573 users
import string chars = list(string.ascii_lowercase) print(chars) ''' run: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] '''
import string chars = list(string.ascii_lowercase) for ch in chars: print(ch, end=" ") ''' run: a b c d e f g h i j k l m n o p q r s t u v w x y z '''
chars = list(map(chr, range(97, 123))) for ch in chars: print(ch, end=" ") ''' run: a b c d e f g h i j k l m n o p q r s t u v w x y z '''
chars = list(chr(i) for i in range(ord('a'), ord('z')+1)) for ch in chars: print(ch, end=" ") ''' run: a b c d e f g h i j k l m n o p q r s t u v w x y z '''