In this tutorial, we will learn how to check if two trees are mirror or not in Python. For checking the trees are mirror or not, the following conditions must be true:- 1. The root.... Read More
This tutorial is about how to get a random line from a text file in Python. Python contains a lot of predefined modules. Python has a module that is the random module by using the .... Read More
In this tutorial, we are going to learn setdefault() method in Python with some easy examples. That is most important to many programmers while dealing with a dictionary. Usually, .... Read More
In this article, we are going to learn how to get Unique Values from a Python List. So what do you mean by the unique element? The unique element is the element in the list which i.... Read More
In this tutorial, we will learn how to print all the possible subsets of a set in C++. Now, before moving to the problem which is to print all the possible subsets of a set in C++..... Read More
For this specific task of assigning album art to a ‘.mp3’ file, I’ll be using the 'mutagen' module of Python(v: 3.7.4) You can very easily install mutagen. Instal.... Read More
In this post, I will be explaining how to sort files by size in a directory in Python. Basic Process/Algorithm for the Task: Sort files by size I’ll be using Python’s i.... Read More
In this tutorial, we will learn about the Inplace operator in Python. Python provides various methods to perform inplace operations. Inplace operation means the computation and the.... Read More