python list with all letters

54

python list with all letters -

alphabet_list = list(string.ascii_lowercase)

alphabet list python -

#Python: premade alphabet string 

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

python create a list of alphabets -

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

Comments

Submit
0 Comments