Companies Home Search Profile

Python's None: Null in Python

Focused View

Christian Mondorf

20:41

398 View
  • 1 intro mc.mp4
    04:01
  • 2 none testing mc.mp4
    06:23
  • 3 default param mc.mp4
    05:29
  • 4 traceback mc.mp4
    02:24
  • 5 conclusion mc.mp4
    02:24
  • None.pdf
  • none.zip
  • Description


    If you have experience with other programming languages, like C or Java, then you’ve probably heard of the concept of null. Many languages use this to represent a pointer that doesn’t point to anything, to denote when a variable is empty, or to mark default parameters that you haven’t yet supplied. null is often defined to be 0 in those languages, but null in Python is different.

    Python uses the keyword None to define null objects and variables. While None does serve some of the same purposes as null in other languages, it’s another beast entirely. As the null in Python, None is not defined to be 0 or any other value. In Python, None is an object and a first-class citizen!

    In this course, you’ll learn:

    What You'll Learn?


    • What None is and how to test for it
    • When and why to use None as a default parameter
    • What None and NoneType mean in your traceback
    • How to use None in type checking
    • How null in Python works under the hood

    More details


    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Category
    Christian Mondorf
    Christian Mondorf
    Instructor's Courses

    Christian is an avid Pythonista and video instructor at Real Python.

    Learn Python online: Python tutorials for developers of all skill levels, Python books and courses, Python news, code examples, articles, and more.
    • language english
    • Training sessions 5
    • duration 20:41
    • Release Date 2023/01/05