add pen name inside the list

Input

Output

  • add_pen_name []

Enpoint

https://hub.xpub.nl/soupboat/si16/api/add_pen_name/

Try it

add_pen_name


Add pen names into the list

Input: - name, string

Output: - name, list

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
# simple application here
add_pen_name('broggle')
['Blibli', 'Chae as Che Gueverq', 'turtle teller', 'broggle']

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