Generation

generate functionTue, 18 Apr 2023

how to use 'NoneType'

def is_none(thing): if thing is None: print("It's None") elif thing: print("It's True") else: print("It's False") is_none(None)

Questions about programming?Chat with your personal AI assistant