Skip to content

Category Archives: Python Programs

Python variable assignment is different from some of the popular languages like c, c++ and java. There is no declaration of a variable, just an… Read More
Strings in Python are immutable sequences of Unicode code points. Given a string, we need to find its length. Examples: Input : 'abc' Output :… Read More
Python is a multipurpose language and one can do literally anything with it. Python can also be used for game development. Let’s create a simple… Read More
Write a program in python to convert standard SOP(sum of products) form to standard POS(product of sums) form. Assumptions:The input SOP expression is standard. The… Read More
Prerequisite : HeapSort Heap sort is a comparison based sorting technique based on Binary Heap data structure. It is similar to selection sort where we first… Read More
Prerequisites We will briefly summarize Linear Regression before implementing it using Tensorflow. Since we will not get into the details of either Linear Regression or… Read More
Given an array, print the Next Greater Element (NGE) for every element. The Next greater Element for an element x is the first greater element… Read More
Write a python program to read contents of a file and copy only the content of odd lines into new file. Examples: Input : Hello… Read More
Given a string. The task is to print all words with even length in the given string. Examples: Input: s = "This is a python… Read More
Given two 3-D co-ordinates we need to find the points on the line joining them. All points have integer co-ordinates. Examples: Input : (-1, 1,… Read More
Word documents contain formatted text wrapped within three object levels. Lowest level- Run objects, Middle level- Paragraph objects and Highest level- Document object. So, we… Read More
Given a list, count and print all the palindrome numbers in it. Examples: Input: 10 121 133 155 141 252 Output: 121 141 252 Total… Read More
Given a number ‘n’, the task is to generate the first ‘n’ Stormer numbers.A Stormer Number is a positive integer ‘i’ such that the greatest… Read More
Given a string, the task is to check if every vowel is present or not. We consider a vowel to be present if it is… Read More
The OpenWeatherMap is a service that provides weather data, including current weather data, forecasts, and historical data to the developers of web services and mobile… Read More

Start Your Coding Journey Now!