"None" type in Python? (explained)

21,575
0
Published 2023-02-15
Let's talk about None types in Python! We'll go over some real code samples, and talk about when you would use "None" in the real world.

Learn Python: boot.dev/learn/learn-python

Learn Back-end Development: boot.dev/

== Chapter Contents ==
00:00 - Intro
00:10 - Using Nonetype in code
01:12 - Why would I use None?
02:20 - Printing None vs string

All Comments (9)
  • @bluhazy
    Love this! currently enrolled in your course and loving it so far! Coming from 100 days of code course on Udemy (Only did 2 days) and so far I feel like the learning pathway on your course is a lot more easy to understand. And boy, do I love getting those achievements! Thank you for all you do! 😊
  • @Zeriel00
    The way I see it is like a Boolean type, for example. If something is true then do x, if something is false then do y, then you can make the variable something = None, so nothing happens until either true or false is determined.
  • @ze0ss.p468
    Explicou melhor que os produtores da minha língua, se puder legendar seus vídeos sempre eu agradeço amiguinho.
  • @cheddar2648
    my_python_exp = None I think I am getting the hang of this. 😅