Python: Abstract Class

Abstract class works as a blueprint for other classes. We can not instantiate an abstract class, but extend it. Abstract class contains abstract methods, which do not definition of the method. We need to add the definition of those abstract methods, in the child(class that extends abstract class) class. WARNING Abstract classes and methods are … Read more

Python: Boolean [Data Type]

There are 2 built-in Boolean objects in Python- If we convert any other data type to Boolean, it will be either True or False. Create Boolean We can use the “bool” function to create a boolean. If no param is provided then it returns false- Output: Or we can just assign a Boolean value – … Read more