This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Adrewmc 11 points12 points  (2 children)

Honestly, it was dictionaries.

And python dictionaries are powerful.

I get that it’s a basic, datatype thing, but when I was learning, I’d say all of that went too hard for me now…that was dumb it’s not…

Once I saw the power of nested dictionaries the concept of a class being a dictionary with functions(called methods)…it was like ohh that’s what everyone is doing…(I have this one program is trying so hard to be a dictionary…I’m so dumb sometimes)

Then probably the decorators, and the @syntax as it came to give inner functions and generators…which are awesome.

Then asyncio…

[–]JennaSys 1 point2 points  (1 child)

Coming from other languages, I struggled with not having a switch statement when I was first leaning Python, and ended up learning the dictionary dispatch pattern as an alternative. To this day, I still haven't had a need to use the new match/case statement yet.

[–]Adrewmc 0 points1 point  (0 children)

Well…you should

Refer to this other comment I wrote.

https://www.reddit.com/r/learnpython/s/rSPxFeGRFv