Skip to content

To store all the alphabets in a list in python

We can store all the alphabets in a list as follows

import string

alpha = [i for i in string.ascii_lowercase]
for i in alpha:
    print(i, end=" ")
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
Back to top