coding newbie here. I’ve been coding Python for the most part of the last year, and recently just began learning Java. I understand that Python does not grant access protection like Java does. However, a friend of mine told me:
Since everything in Python is public, you can access the internal state of something and change it easily. For instance, you can access the price of an item in an online shopping basket and modify the class directly.
I understand that there’s more to that analogy (like security and stuff) but to what extent is this issue with lack of protected access true?