python alphabet array code example
Example 1: alphabet list python
#Python: premade alphabet string
import string
string.ascii_lowercase
#output: 'abcdefghijklmnopqrstuvwxyz'
string.ascii_uppercase
#output: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Example 2: python create a list of alphabets
>>> import string
>>> string.ascii_lowercase
'abcdefghijklmnopqrstuvwxyz'
Example 3: python range of letters
a = ord('a')
alph = [chr(i) for i in range(a, a+26)]