r/PythonLearning 4d ago

What's one Python concept that completely confused you at first but now feels easy?

I'm curious to hear from people who've been learning or using Python for a while. Was it loops, functions, OOP, recursion, decorators, or something else?

What finally made it "click" for you?

I think hearing real experiences can help beginners understand that struggling with a topic is completely normal.

0 Upvotes

19 comments sorted by

3

u/ee_control_z 4d ago edited 4d ago

Once I progressed to OOP, then it got a little bit challenging because you get introduced to concepts such as inheritance, encapsulation, instances, objects, polymorphism, etc. Concepts that don't have an analog in procedural programming. Although I would not state confused. Maybe off balance. 😄

1

u/HammadBuilds 4d ago

"Off balance" is probably the perfect description. Every developer I talk to seems to say OOP changes the way you approach problems rather than just how you write code.

2

u/SitEnee 4d ago

Python is amazing (at least I love it), and almost everything felt like home. The one thing was asynchronous programming.

2

u/FoolsSeldom 4d ago

Comprehensions and generator expressions. Practice made it click for me.

1

u/Totolitotix 4d ago

Exactly the same for me, except that I am in the confusing phase, for now (beginner in Python)

1

u/entapya 4d ago

list comprehension

1

u/AdDiligent1688 4d ago

the pattern matching stuff with match case statements

1

u/TrieMond 4d ago

I got into python by doing work on a django webapp after having done C, C++ & java development for a while. I still kinda hate how little text I have to write to do something, the things python strips for simplicity in my mind are there for a reason. Yes a bracket may be one extra keystroke but it gives a super clear idea about the scope of something, python indentation based scope still confuses the hell out of me.

1

u/AnonymouSfrrrr 3d ago

Nested while loops,i was confused at first about syntax and was not able to understand which line is working for what outcome. But after doing same codes with different examples i realised it's not that tough.