Comments are the way to improve the readability of a code, by explaining what we have done in code in simple english. In this guide, we will learn about comments in Python and their types.
Understanding Python Variables Variables are used to store data, they take memory space based on the type of value we assigning to them.
A function is a block of code that contains one or more Python statements and used for performing a specific tasks.
Built-in functions: These functions are predefined in Python and we need not to declare these functions before calling them. We can freely invoke them as and when needed.
User defined functions: The functions which we create in our code are user-defined functions. The add() function that we have created in above examples is a user-defined function.
Python classes and objects which lays the foundation of OOPs concepts.
This article on “object oriented programming python” will walk you through declaring
python classes, instantiating objects from them along with the four methodologies of OOPs.
Python is an object-oriented programming language. What this means is we can solve a problem in Python by creating objects in our programs. In this guide, we will discuss OOPs terms such as class, objects, methods etc. along with the Object oriented programming features such as inheritance, polymorphism, abstraction, encapsulation.
Read MoreIf you want to