+ 1

Why python donot have access modifier in it?

Python basic question.

10th Nov 2019, 5:50 PM
Palkesh Goyal
Palkesh Goyal - avatar
3 Answers
+ 1
Python have access modifier by default all variable are public if you want to make a variable private then you have to add double under score before variable name And for making variable protected you have to add single under score before variable name
11th Nov 2019, 7:55 PM
à€•à€Ÿà€źà„‡à€¶
à€•à€Ÿà€źà„‡à€¶ - avatar
+ 1
Thank you kamesh shekhar prasad but they are still accessible.
12th Nov 2019, 2:13 AM
Palkesh Goyal
Palkesh Goyal - avatar