Python Program to Print Armstrong numbers between two intervals

Write a program to print all the Armstrong numbers in the given range A to B (including A and B). An N – digit number is an…

Python Program to Check if Given Input is a Letter, Digit or Special Character

Letter, Digit or Special Character You are given a character as input. Check if the given input is a Lowercase Letter or Uppercase Letter or Digit or…

Python Program to print the lists of unique elements in the given lists

Write a program to print the lists which contain the unique elements in the given list of lists. Input The first line of input will contain a…

Python Program to print Max and Min Value in List of Tuples

Max and Min Value in List of Tuples Write a program to print the maximum and minimum of all the values at index zero and index one…

Python Program to Convert Temperature from Celsius to Fahrenheit & Kelvin and Vice Versa

Temperature Conversion You are given the temperature T of an object in one of Celsius, Fahrenheit, and Kelvin scales. Write a program to print T in all…

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…

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 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…