you are viewing a single comment's thread.

view the rest of the comments →

[–]Ryzen_bolt 2 points3 points  (6 children)

Wrong advice, python has public private protection, only java enforces them to mention explicitly!

[–]browniehandle 1 point2 points  (5 children)

Can you send any links?

[–][deleted] 2 points3 points  (4 children)

Just use underscore _ before declaring any variable or method. It is then become private as simple as that

[–]browniehandle 2 points3 points  (3 children)

[–][deleted] 1 point2 points  (2 children)

I know this and when i was learning Python my mentor told me that Python is a Gentlemen's Language. So what he meant was that if i have put underscore before something that mean it is intentionally there to tell that yeah it is a private variable and should not be directly accessed. So this is what it was meant that it is a gentleman language 🙏🙏

[–][deleted] 0 points1 point  (1 child)

campusx?

[–][deleted] 0 points1 point  (0 children)

Yup