No products in the cart.

Write a program to check whether …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Write a program to check whether the number is a palindrome or not
  • 2 answers

Tanishtha Yadav 3 years, 10 months ago

number = int(input("Please Enter any Number: ")) reverse = 0 temp = number while(temp > 0): Reminder = temp % 10 reverse = (reverse * 10) + Reminder temp = temp //10 print("Reverse of a Given number is = %d" %reverse) if(number == reverse): print("%d is a Palindrome Number" %number) else: print("%d is not a Palindrome Number" %number)

Naga Sree 3 years, 11 months ago

a = input("enter your word:") n = len(a) b = (0,a,-1) If a==b: print("your word is palindrome") else: print("your word is not a palindrome ")
http://mycbseguide.com/examin8/

Related Questions

Write a program for swapping two numbers
  • 1 answers
Write a program for swapping two numbers?
  • 0 answers
What is alu
  • 1 answers
Define packages
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App