What is the correct fix?
def greet(name):
print("Hi " + name)
- Indent the
printline - Remove the parameter
- Use single quotes
- Add a colon after print
The body of the function must be indented under the def.
Play Problem Solving ▸
def greet(name):
print("Hi " + name)
print line