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

What is the correct fix?

if value == None:
    return
  1. Use is None for the test
  2. Use == 'None' for the test
  3. Use not value for the test
  4. Use len(value) for the test
None is a singleton, so identity (is) is the correct and safe comparison.
Play Problem Solving ▸