alphabets function python 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: alphabet python
for i in range(ord('a'), ord('z') + 1):
print(chr(i))
# prints all letters in english the alphabet