Skip to main content
๐Ÿ› Bug HuntPY Python Easy+10 XP

Wrong Comparison

This always returns True for None checks.

๐Ÿ› Find the bug
1def is_valid(value):
2 if value == None:
3 return False
4 return True
๐Ÿ› The bug is on line 2

๐Ÿ”ง Select the correct fix:

Priygop - Leading Professional Development Platform | Expert Courses & Interview Prep