Challenge 1
Store None in the variable result.
result =
print(result is None)
Press Ctrl⌘Enter to check your answer
Practice returning None, checking for None, and distinguishing None from other false values.
Challenge 1
result =
print(result is None)
Press Ctrl⌘Enter to check your answer
Challenge 2
def show():
print("ready")
result = show()
print(result)
Press Ctrl⌘Enter to check your answer
Challenge 3
value = None
if value:
print("missing")
Press Ctrl⌘Enter to check your answer
Challenge 4
value = 0
if value:
print("missing")
Press Ctrl⌘Enter to check your answer