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)

Want to kickstart your project?Use the new AI Studio to create your code