Posts from Python

How to run a Python file when windows starts

By Anmol Tripathi

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

How to Sort a nearly sorted (or K sorted) array in Python

By Reetesh Kumar

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

How to Count maximum points on same line in Python

By Yatharth Jain

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

Diagonal traversal of a binary tree in Python

By Yatharth Jain

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

Difference between find() and index() in Python

By Karandeep Singh

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

Shortest path in an unweighted graph in Python with Diagram

By Saksham Agarwal

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

How to Improve Accuracy Of Machine Learning Model in Python

By Vanshika Namdev

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

Passing List as Command Line Argument in Python

By Ranjeet V

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

Related Posts