2 Answers
New Answerwell, it depends how technical you wanna get: import string string.ascii_lowercase string.ascii_uppercase string.ascii_letters (contains both upper and lower) This imports the alphabet itself from ascii. There is an upper/lower/both versions. You can use it as so: for letter in string.ascii_lowercase: print (letter) or you can put it in a list of you really need to: list (string.ascii_lowercase) There is also a third option: letters = "abcdefghijklmnopqrstuvwxyz" for each in letters: print (each)
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message