None
noun
say it: “NUN” /ˈnʌn/
Python's value for "nothing here", used for something that hasn't been set yet or a function that gives nothing back.
What is None?
None is Python's way of saying "nothing here yet". Use it for a value that hasn't been set.
middle_name = None
if middle_name is None:
print("No middle name given")
In a sentence
- “middle_name starts as None until the customer types one.”
- “A function with no return line gives back None.”
Level: Novice · More Python terms at this level
Updated