None is a powerful tool in the Python toolbox. Like
None is an immutable keyword. As the
null in Python, you use it to mark missing values and results, and even default parameters where it’s a much better choice than mutable types.
Now you can:
- Test for
- Choose when
Noneis a valid value in your code
Noneand its alternatives as default parameters
NoneTypein your tracebacks
Optionalin type hints
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
Agil C on July 30, 2020
Thanks for the video..!