p
y
c
h
a
l
l
e
n
g
e
r
Home
Python Basics
Functions I
Exercise: Default parameter value
Exercise: Default parameter value
The code below throws an error. Can you think of a way fix it by adjusting only the function parameters?
Premium
reset
def greet(name): return f"Hello, {name}!" print(greet("Erik"))
Python
Setting up Python environment...
Output