What is the correct fix?
if value == None:
return
- Use
is Nonefor the test - Use
== 'None'for the test - Use
not valuefor the test - Use
len(value)for the test
None is a singleton, so identity (
Play Problem Solving ▸
is) is the correct and safe comparison.