Answers for "Upper letter list"

51

All caps alphabet as list

['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']
Posted by: Guest on September-12-2020
0

Upper letter list

import string


thelist = list(string.ascii_lowercase)
print(thelist)

thelist = list(string.ascii_uppercase)
print(thelist)

thelist = list(string.hexdigits)
print(thelist)

thelist = list(string.octdigits)
print(thelist)

thelist = list(string.punctuation)
print(thelist)

thelist = list(string.whitespace)
print(thelist)
Posted by: Guest on April-29-2022
0

All caps alphabet as list

>>> w = 'AbcDefgHijkL'
>>> r = re.findall('([A-Z])', word)
>>> r
['A', 'D', 'H', 'L']
Posted by: Guest on April-03-2022

Browse Popular Code Answers by Language