You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.5 KiB

add_pen_name


Add pen names into the list

Input:

  • name, string

Output:

  • name, list
In [3]:
pen_name_list = ['Blibli', 'Chae as Che Gueverq', 'turtle teller']

def add_pen_name(name_input):
    '''add pen name inside the list'''
    if name_input:
        if name_input not in pen_name_list:
            pen_name_list.append(name_input)
    return pen_name_list
In [4]:
# simple application here
add_pen_name('broggle')
Out[4]:
['Blibli', 'Chae as Che Gueverq', 'turtle teller', 'broggle']

This function is part of C and G project, ETC Portal to Contaminate

In [ ]: