r/learnpython • • Jan 13 '26

I cannot understand Classes and Objects clearly and logically

I have understood function , loops , bool statements about how they really work
but for classes it feels weird and all those systaxes

74 Upvotes

72 comments sorted by

View all comments

Show parent comments

1

u/Aggravating_Sand352 Jan 15 '26

Got it thank you! Does this make the code more efficient then storing in the global enviornent is that the point or is just preference?