Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Tech Answered Logo Tech Answered Logo
Sign InSign Up

Tech Answered

Tech Answered Navigation

  • Home
  • Tutorials
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us
Home / Questions /Q 533
Next
In Process
harrywilson
harrywilson

harrywilson

  • India
  • 47 Questions
  • 0 Answers
  • 0 Best Answers
  • 26 Points
View Profile
  • 0
harrywilson
Asked: August 28, 20202020-08-28T15:13:05+05:30 2020-08-28T15:13:05+05:30In: Python

What Is The Python Program To Check If A Number Is Palindrome?

  • 0

Can anybody give me the answer to the question? Please make it a simple one 🙏

palindromeprogrampython
  • 2
  • 1,146
  • 0
  • 0
Answer
Share
  • Facebook

    Related Questions

    • Python Program To Print Stars (*) In Different Patterns?
    • What Is The Python Program To Print The Calendar Of A Particular Month?
    • Write A Python Program To Accept A File Name From The User And Print The Extension Of The File Name.
    • Python Program To Count The Number Of Vowels In A Sentence?
    • Best Programming Language To Learn in 2021?
    • How to create a dictionary in Python
    • How Python is used in Data Science?

    2 Answers

    1. Krishna Vijayan

      Krishna Vijayan

      • India
      • 8 Questions
      • 218 Answers
      • 9 Best Answers
      • 0 Points
      View Profile
      Krishna Vijayan
      2020-08-28T16:24:16+05:30Added an answer on August 28, 2020 at 4:24 pm

      num=int(input("Enter The Number:"))
      temp=num
      rev=0
      while(num>0):
          dig=num%10
          rev=rev*10+dig
          num=num//10
      if(temp==rev):
          print("The Number Is A Palindrome")
      else:
          print("The Number Is Not A Palindrome")

      Hope This Helped 🙏

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. shiv

      shiv

      • India
      • 31 Questions
      • 9 Answers
      • 0 Best Answers
      • 41 Points
      View Profile
      shiv
      2020-08-28T19:02:26+05:30Added an answer on August 28, 2020 at 7:02 pm

       

       

       

       

      *Using while loop:

       

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11

      num=int(input("Enter a number:"))
      temp=num
      rev=0
      while(num>0):
          dig=num%10
          rev=rev*10+dig
          num=num//10
      if(temp==rev):
          print("The number is palindrome!")
      else:
          print("Not a palindrome!")

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    More Questions

    • Himasree

      What is the difference between modules and packages in Python?

    • Swathi

      how to remove indentation error in python

    • Swathi

      what is the difference between list and tuple in python

    • Vipinkv

      Python Program To Print Stars (*) In Different Patterns?

    • Vipinkv

      What Is The Python Program To Print The Calendar Of

    • Krishna Vijayan

      Write A Python Program To Accept A File Name From

    • Vipinkv

      Python Program To Count The Number Of Vowels In A

    • arunraj503

      Addition of two numbers in Python using user input example

    Stats

    • Questions 1,991
    • Answers 2,102
    • Posts 12
    • Best Answers 73

    Related Questions

    • Vipinkv

      Python Program To Print Stars (*) In Different Patterns?

    • Vipinkv

      What Is The Python Program To Print The Calendar Of A Particular

    • Krishna Vijayan

      Write A Python Program To Accept A File Name From The User

    • Vipinkv

      Python Program To Count The Number Of Vowels In A Sentence?

    • Vipinkv

      Best Programming Language To Learn in 2021?

    • Priyanka Chakraborty

      How to create a dictionary in Python

    • Priyanka Chakraborty

      How Python is used in Data Science?

    • Sidharth

      what is the code to design a doormat in python?

    Explore

    • Home
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help

    Footer

    Recent Comments

    • muller on how to solve export problem in kinemaster
    • muller on how to solve export problem in kinemaster
    • muller on how to solve export problem in kinemaster
    • AaronBlackburn on why can’t i find my message requests on instagram
    • shree on How to use philips citrus press juicer 25 watts Demo
    Ask A Question

    Archives

    Tags

    laptop buying guide (1) limit google news notifications (1) printer buying guide (1) stop google news notifications (1) turn off google news notifications (1)

    Social media

    © 2023 @ Techanswered.com.
    Terms, Privacy policy & Sitemap.

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.