What is python encapsulation?



What is python encapsulation?..

Answer / Ayushi Srivastava

Encapsulation in Python refers to binding data and functions that operate on that data into a single unit, such as a class. This helps keep the internal details of an object hidden from other parts of the code, promoting modularity, and reducing complexity.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is the use of try, except, finally and raise in error handling?

1 Answers  


Do lists start at 0 or 1?

1 Answers  


Explain the difference between a list and the tuple?

1 Answers  


Why is python good for beginners?

1 Answers  


Is haskell faster than python?

1 Answers  


What is meta class in python?

1 Answers  


How to write multiple statements in a single line in python?

1 Answers  


Is r easier than python?

1 Answers  


Boolean have 2 possible values. Are there types in python that have 3 possible values?

1 Answers  


In python, what is theano?

1 Answers  


What does != Mean in python 3?

1 Answers  


Is it better to learn python or java?

1 Answers  


Categories