13 Program that takes a number and checks whether it is a Palindrome or not using python

Program: num = int(input("Enter any number:")) onum = num rnum = 0 while num > 0:     rem = num % 10     rnum = (rnum *...
Read More

12 Program takes in a number and finds the sum of digits in a number using Python

Program: num = int(input("Enter any number:")) onum = num snum = 0 while num > 0:     rem = num % 10     snum = snum +...
Read More

11 Program to reverse a given number using Python

Program: num = int(input("Enter any number:")) onum = num rnum = 0 while num > 0:     rem = num % 10     rnum = (rnum *...
Read More

10 Program to calculate factorial of a number using python

Program: num = int(input("Enter any number:")) fact = 1 for i in range(0,num):     fact = (fact * i) + fact print(fact) Ou...
Read More

9 Program to print Fibonacci Series using Python

Program: num = int(input("Enter any number:")) f0 = 0 f1 = 1 f2 = 1 for i in range(num):     print(f0,end="  ")   ...
Read More

8 Program to print all even numbers between 1 to 100 using while loop in Python

Program: i = 1 while i <= 100:     if i %2 == 0 :         print(i,end="  ")     i+=1 Output:
Read More

7 Program to print Right Angle Triangle in Python

Required Output: Program: star = int(input("Enter any number:")) for i in range(1,star+1):     while(i>0):         ...
Read More

6 Program to Print Diamond Pattern in Python

Required Output: Program: star = int(input("Enter any number:")) space = star // 2 for i in range(1,star+1,2):     f...
Read More

5 Program that takes the marks of 5 subjects and display the grades using Python

Program: m1,m2,m3,m4,m5 = input("Enter 5 Subject Marks").split(' ') m1 = int(m1) m2 = int(m2) m3 = int(m3) m4 =...
Read More