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

What is the correct fix?

def square(n):
    return n ** 2

print(squere(4))
  1. Change squere(4) to square(4)
  2. Change ** to * in the body
  3. Add a second argument to the call
  4. Use pow(4) from the math module
The call misspells the function name square.
Play Problem Solving ▸