Skip to content

Category Archives: Python

Write a function to check whether two given strings are anagram of each other or not. An anagram of a string is another string that… Read More
Given an input string, write a function that returns the Run Length Encoded string for the input string. For example, if the input string is… Read More
Aim : Program to compute the sum of two matrices and then print it in Python. Examples:  Input : X= [[1,2,3], [4 ,5,6], [7 ,8,9]] Y… Read More
In python there is no implicit concept of data types, though explicit conversion of data types is possible, but it not easy for us to… Read More
We are given a string and we need to remove all duplicates from it? What will be the output if the order of character matters?… Read More
Matrix multiplication is an operation that takes two matrices as input and produces single matrix by multiplying rows of the first matrix to the column… Read More
Pre-processing refers to the transformations applied to our data before feeding it to the algorithm. Data Preprocessing is a technique that is used to convert… Read More
What is the replacement of Switch Case in Python? Unlike every other programming language we have used before, Python does not have a switch or… Read More
Like List Comprehension, Python allows dictionary comprehensions. We can create dictionaries using simple expressions. A dictionary comprehension takes the form {key: value for (key, value)… Read More
Given a 2-D matrix, we need to find sum of all elements present in matrix ? Examples:Attention reader! Don’t stop learning now. Get hold of… Read More
How to get prime numbers quickly in python using library functions?Library functions always make our code easy so here we are going to discuss some… Read More
Given an unsorted array of n integers which can contains n integers. Count frequency of all elements that are present in array. Examples: Input :… Read More
Given an array of positive and negative numbers, arrange them such that all negative integers appear before all the positive integers in the array. The… Read More
Conways’s Game Of Life is a Cellular Automation Method created by John Conway. This game was created with Biology in mind but has been applied… Read More
This article focus on creating a stopwatch using Tkinter in python Tkinter : Tkinter is the standard GUI library for Python. Python when combined with Tkinter… Read More