How to generate the alphabet letters in Python

2 Answers

0 votes
import string

print(string.ascii_lowercase)

'''
run:

abcdefghijklmnopqrstuvwxyz

'''

 



answered Mar 24, 2017 by avibootz
0 votes
import string

print(string.ascii_uppercase)

'''
run:

ABCDEFGHIJKLMNOPQRSTUVWXYZ

'''

 



answered Mar 24, 2017 by avibootz

Related questions

4 answers 382 views
3 answers 190 views
2 answers 174 views
2 answers 184 views
2 answers 174 views
1 answer 177 views
...