Horje
separate alphanumeric list Code Example
separate alphanumeric list
### START FUNCTION
def create_dictionary(character_list):
    dictionary={'numbers':[],'uppercase':[],'lowercase':[]}
    for character in character_list:
        try:
            int(character)
            dictionary['numbers'].append(character)
        except:
            if character.isupper():
                dictionary['uppercase'].append(character)
            elif character.islower():
                dictionary['lowercase'].append(character)
    for item in dictionary:
        dictionary[item].sort()
    return dictionary
### END FUNCTION




Python

Related
google colab python version Code Example google colab python version Code Example
python programming online editor Code Example python programming online editor Code Example
how to pick everything after a character in python Code Example how to pick everything after a character in python Code Example
python compiler and shell online Code Example python compiler and shell online Code Example
theme_use() tkinter theme usage Code Example theme_use() tkinter theme usage Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11