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

Which fix removes the bug?

def greet():
    return 'hi'

print(greet)
  1. Add global greet first
  2. Change return to print
  3. Rename it to Greet
  4. Print greet() instead
Without the parentheses the function object itself is printed, not its result.
Play Problem Solving ▸