Posts from Python

Python Program to find the nth Kynea number

By Abinash Reddy

In this article, we will learn how to find the nth Kynea number in Python. But first, let’s discuss a few points about Kynea number. What is Kynea number? In mathematical, Ky.... Read More

Python Program to Count Magic Squares in a Grid in Python

By Abinash Reddy

In this article, we will learn how to count magic squares in a grid using Python. A Magic square is a 3 x 3 grid filled with all distinct numbers from 1 to 9 such that each column,.... Read More

Check whether a given array is a k sorted array or not in Python

By Abinash Reddy

In this article, we learn how to check whether a given array is a k sorted array or not in Python. An array is said k sorted array if each element in the array is at most k distanc.... Read More

N-Bonacci Numbers in Python

By Abinash Reddy

In this article, we will learn how to implement N-Bonacci Numbers in Python. N-Bonacci Numbers are similar to the Fibonacci series but in the N-Bonacci series, each term is the sum.... Read More

Python program to compare two text files

By Abinash Reddy

In this article, we will learn how to compare two text files in Python. We will try to implement this problem by using various methods. Files used in examples file1 file2 Method 1:.... Read More

Python program to extract a single value from JSON response (Using API call)

By Rahul Kumar

Hello Everyone! In this Python tutorial, we are going to learn how to retrieve Single data or single values from JSON using Python. To perform this task we will be going to use the.... Read More

Rearranging the given number to form the smallest number in Python

By Abinash Reddy

In this article, we will implement a program to rearrange the digits of a given number to form the smallest possible number in Python. We will rearrange the number such that it for.... Read More

Python program to get key with maximum value in Dictionary

By Abinash Reddy

In this article, we will learn how to get key with maximum value in Dictionary in Python. Dictionary is used to store the data value in key: value pair. A dictionary is a mutable, .... Read More