Exercise: Append element to list

Define a function that updates the guest list by appending another guest to the end of the list.
guest_list = ['Alice', 'Bob', 'Charlie'] # define function here...
def invite
invite('Erik') print(guest_list) # expected: ['Alice', 'Bob', 'Charlie', 'Erik'] invite('Samantha') print(guest_list) # expected: ['Alice', 'Bob', 'Charlie', 'Erik', 'Samantha']
Python
Setting up Python environment...
Output