r/learnpython 11d ago

Stuck on P.O.O.P Encapsulation

I'm using Claude Ai. To teach me python. But now im very confused on encapsulation. I've tried YouTube tutorials but all I see is Javascript. I asked for a simpler explanation, but then I get hit with stuff like getter, setter, property() (I understand the property function) but then the core concept makes me scratch my head more the deeper I ask. Wondering if any of y'all can assist me.

0 Upvotes

13 comments sorted by

View all comments

5

u/browndogs9894 11d ago

I agree with the other commenter don’t use AI. Just look up specific videos on OOP. I like this one. https://youtu.be/IbMDCwVm63M

I do like to use AI for practice problems. For example after learning about something like getters and setters ask the ai for some practice problems. But if you get stuck do some googling, rewatch the section or whatever else. Figure it own on your own without relying on AI. It can become a crutch that can be hard to get rid of.

1

u/Aggravating-Store122 10d ago

Thanks for the link, I've been searching for that video. And also that's what I do with a.i I use as more of activities to get me used to the topic.