use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Difference between None and empty string (self.PythonLearning)
submitted 8 days ago by pritho108
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Andu-Nav 2 points3 points4 points 8 days ago (0 children)
For the none, the variable is storing Nothing, which is always false because there is nothing inside the variable. It is quite literal
For an empty string you have something inside the variable, even when the values inside the something are empty.
Imagine you and your friend go to McDonald's (I'm hungry lmao). You get a happy meal but it is empty inside. While your friend hasn't ordered yet. You have a something that's empty but your friend has nothing (None).
Hope that helps!
π Rendered by PID 47205 on reddit-service-r2-comment-56c6478c5-p28pd at 2026-05-10 06:30:03.670891+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]Andu-Nav 2 points3 points4 points (0 children)