Python Class __init__ Method Tutorial

Python Class __init__ Method Tutorial

Python is an object-oriented programming language where the class is used to create new instances or objects. As class contains different data types and structures during the creation of the instance these data should be initialized properly. __init__ method is used to initialize a Python object during the creation. The __init__ method can be called … Read more

Python repr() Method Tutorial

Python repr() Method Tutorial

While developing applications different types of objects are used in Python programming language. In some cases, we may need to print these objects into the screen or standard output. Even there are different functions like print() it is mainly created for basic types. In order to print more complex type objects like class etc. repr() … Read more

Python type() and isinstance() Methods: Check Object Types

Python type() and isinstance() Methods: Check Object Types

Python is an object-oriented and advanced language that provides different types and objects to store and process data. These objects can be built-in or custom which are created by developers. While working with different objects finding their type is very important to use them properly. Python built-in type() method used to detect and find given … Read more