LEARN LOOPING OF PYTHON

WITH OOPS-HUB

Start Learning

Looping(Practice session-1)

1. Factorial

WAP to accept any number display their factorial value. Example: Input Number - 5 Factorial value-1*2*3*4*5=120.

2. Reverse

WAP to accept any number and reverse it and display the new number. Example: Input Number - 123 Reverse number - 321.

3. Palindrome

WAP to accept any number and check the number is palindrome or not. Example: Input Number - 123 Reverse number - 321 Input value & reverse value both are not same, the 123 is not a palindrome number. Example: Input Number - 1221 Reverse number - 1221 Input value & reverse value both are same; the 1221 is a palindrome number.

4. Armstrong

WAP to accept any number and check the number is Armstrong or not. Example: Input Number - 153 C= 13+53+33 C=1+125+27= 153 Input value & calculated value both are same, the 153 is a Armstrong number.

Go pro with OOPS HUB to taste new.
Here's some demo session.

View demo

  SPECIAL THANX

INSTITUTE OF INTELLECTUAL INFORMATION

+91 9674122138

info@icubelearning.com

  quick links

  PRO VERSION

To know learn the more code, go pro version of OOPS HUB. You will get various special codes & can learn other parts of the language. Sing up to go pro.