In this tutorial, we are going to learn how to run a Python file when windows starts, what we really mean here is as soon as we boot up our windows the Python script should start r.... Read More
In this tutorial, we’ll learn how to sort a nearly sorted array (or K sorted array) in Python. K sorted array means that every element is at most K steps ahead or behind it.... Read More
A line contains an infinite number of points on its surface. Hence, if we are given a set point then there is a huge possibility of more than 1 point lying on the same line. So t.... Read More
The problem is that given a binary tree we need to print all the elements diagonally. A binary tree is a type of tree with each internal node has at most two children, one left and.... Read More
Hey, guys today we are going to learn the difference between find() and index() in Python. Both these string methods are very similar but have few differences. Before starting with.... Read More
In this blog, we’ll see how we can find the shortest path in an unweighted graph in Python. Ex: Now there are many ways you can tackle this problem. You can use the Bellman-F.... Read More
Machine Learning model accuracy is the measurement to decide which model is best to do prediction. Machine Learning model accuracy is very essential as the cost of error can be hug.... Read More
In this tutorial, we will see how we can pass a Python list as a single argument in the command line shell of the system. We will be using the sys module to accomplish this. Let.... Read More