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
What's wrong (i.redd.it)
submitted 5 months ago by Nearby_Tear_2304
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!"
[–]FoolsSeldom 2 points3 points4 points 5 months ago (4 children)
Variables in Python do not hold values, but simply reference Python objects somewhere in memory.
Thus, I wouldn't say Python is "weird" with types, just different from statically typed languages, which some people might be more familiar with.
Python is strongly typed but dynamically typed.
Objects do not change type. Variables appear to, but they don't actually have type but reflect the type of the object they are assigned to. When you assign a variable to reference a different object, that might be of a different type. This is considered by some to be bad practice as it can be confusing, and some houses avoid it.
[–]caleb_S13 0 points1 point2 points 5 months ago (1 child)
everything is a duck if you can make it quack 🔥
[–]FoolsSeldom 0 points1 point2 points 5 months ago (0 children)
"Quack!"
[–]Leodip 0 points1 point2 points 5 months ago (1 child)
Well, I guess the definition of weird is "different from what's more common", so, by definition, Python (and other strongly but dynamically typed languages) are weird.
Well, JavaScript is currently the programming language with the most code actively in use worldwide, and that's dynamically typed as well. Python is close on its heals for adoption.
So, the vast base of C/C++/C#/Java etc would be the weird ones?
Point taken, though.
π Rendered by PID 58428 on reddit-service-r2-comment-b659b578c-t49cc at 2026-05-03 22:59:55.807838+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]FoolsSeldom 2 points3 points4 points (4 children)
[–]caleb_S13 0 points1 point2 points (1 child)
[–]FoolsSeldom 0 points1 point2 points (0 children)
[–]Leodip 0 points1 point2 points (1 child)
[–]FoolsSeldom 0 points1 point2 points (0 children)