python alphabet

44

python list with all letters -

alphabet_list = list(string.ascii_lowercase)

python alphabet list -

>>> alphabet = 
['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']

alphabet list python -

#Python: premade alphabet string 

import string
string.ascii_lowercase
	#output: 'abcdefghijklmnopqrstuvwxyz'
string.ascii_uppercase
	#output: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

python alphabet -

>>> import string
>>> string.ascii_lowercase
'abcdefghijklmnopqrstuvwxyz'

Comments

Submit
0 Comments