p
y
c
h
a
l
l
e
n
g
e
r
Home
Python Basics
Lists and Tuples
Exercise: Append element to list
Exercise: Append element to list
Define a function that updates the guest list by appending another guest to the end of the list.
Premium
reset
def greet(name): return f"Hello, {name}!" print(greet("Erik"))
Python
Setting up Python environment...
Output