Category: python
How to Create Thread in Python
In Python threading module has a Thread class which is used for creating thread. There are two ways to create a new Thread in Python. By creating Thread instance and passing the function that has to be executed as one of the argument to the constructor of the Thread. By…
Python Multi-threading Tutorial

In this tutorial we’ll see the support for multi-threading in Python. Table of contents What is multi-tasking Multi-threading in Python Python thread creation example Python Thread class methods Main thread in Python What is multi-tasking In concurrent programming there are two types of multitasking- Process based multitasking Thread based multitasking…
Python Classes and Objects
Abstract Class in Python With Examples
In this tutorial you will learn about Abstract class which is an important concept in object oriented programming and how to define abstract classes in Python using abc module. Table of contents What is an Abstract class Creating Abstract class in Python Abstract method in Python Why use an Abstract…
How to Copy File in Python
In this post we’ll see different ways you can copy a file in Python. 1. A simple way to copy a file in Python is to use read() method to read a file once you have a file object and then write the content to another file. Following Python program…
issubclass() in Python With Examples
The Python issubclass() is a built-in function that checks whether the passed class is a subclass of the specified another class or not. Syntax of the Python issubclass() is as given below- issubclass(class, classinfo) Function returns True if class is a subclass (direct, indirect or virtual) of classinfo. classinfo may…
Method Overriding in Python With Examples
In this post we’’ll see how Method Overriding in Python works. What is Method Overriding Method overriding is an object oriented programming concept which states that a child class can provide a different implementation of a method that is already there in one of its parent classes. If a method…
Method Overloading in Python With Examples
In this post we’’ll see how Method Overloading in Python works. What is Method Overloading Method overloading is also an object oriented programming concept which states that in a single class you can have two or more methods having the same name where the methods differ in types or number…
Name Mangling in Python With Examples
If you are writing a class in Python and want to follow Encapsulation OOPS concept in Python then how will you stop outside access to the variables as there are no explicit access modifiers like public, private, protected in Python and all the variables are public by default. In Python…