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

Which fix removes the bug?

def repeat(text, times):
    return text * time
  1. Change time to times
  2. Change * to +
  3. Wrap with str()
  4. Swap the parameters
The parameter is times; time is not defined.
Play Problem Solving ▸