import string


def create_character_list(args):
    """Create the list of allowed characters to generate passwords from"""
    possible_chars = []

    if args.uppercase_ascii:
        possible_chars += string.ascii_uppercase

    if args.lowercase_ascii:
        possible_chars += string.ascii_lowercase

    if args.numerical:
        possible_chars += string.digits

    if args.punctuation:
        possible_chars += string.punctuation

    return possible_chars