## Python Program to Print a Number Diamond

Diamond Given an integer value N, write a program to print a number diamond of 2*N -1 rows as shown below. Input The first line of input…

## Introduction to Object Oriented Programming in Python| Part-1

Introduction to OOP Good Software Before jumping into Object Oriented Programming, let’s understand the word Software. Software is an easily changeable tool/product that performs a specific task….

## Python Program to Add Two Matrices

Add Two Matrices Write a program to add the two matrices. To add two matrices, just add the corresponding entries, and place this sum in the corresponding…

## Python Program to Print Matrix after ordering all elements in increasing order

Ordered Matrix in Increasing order Given a M x N matrix, write a program to print the matrix after ordering all the elements of the matrix in…

## Simple Calculator Program in Python

Write a python program to create a menu-driven calculator that performs the basic arithmetic operations (+, -, *, /, and %). Input The input will be a…

## Python Program to Print the Frequency of each word in S

Word Count Given a sentence S, write a program to print the frequency of each word in S. The output order should correspond with the word’s input…

## Python Program to Remove all the Words with K Length

Remove Words Given a string, write a program to remove all the words with K length. Input The first line of the input will contain a string…

## Python Program to Move all the Numbers in String to its end

Shift Numbers Given a string, write a program to move all the numbers in it to its end. Input The input will contain a string A. Output…

## Dictionaries in Python | Operations on Dictionaries | Cheat Sheet

Dictionaries Unordered collection of items. Every dictionary item is a Key-value pair. Creating a Dictionary Created by enclosing items within {curly} brackets Each item in dictionary has…

## Python Program to print Maximum, Minimum and sum of Matrix

Maximum, Minimum and sum of Matrix Write a program to print the maximum, minimum and sum of all elements in the matrix. Input The first line of…