$ ./guess_the_languageProblem Solving — fix the bug
Problem Solving — fix the bug · easy · #2

What is the correct fix?

def greet(name):
print("Hi " + name)
  1. Indent the print line
  2. Remove the parameter
  3. Use single quotes
  4. Add a colon after print
The body of the function must be indented under the def.
Play Problem Solving ▸