What are global, protected and private attributes in Python?

what are these In python?

2 Likes

@surya.wonder15

There are three types of access modifiers in Python: public, private, and protected.

Variables with the public access modifiers can be accessed anywhere inside or outside the class.

The private variables can only be accessed inside the class

protected variables can be accessed within the same package.

2 Likes