About 126,000 results
Open links in new tab
  1. How do I check if a number is a palindrome? - Stack Overflow

    Oct 14, 2008 · How do I check if a number is a palindrome? Any language. Any algorithm. (except the algorithm of making the number a string and then reversing the string).

  2. Using Python, reverse an integer, and tell if palindrome

    Oct 25, 2012 · 18 Using Python, reverse an integer and determine if it is a palindrome. Here is my definition of reverse and palindrome. Do I have a correct logic?

  3. python - Check if a number is a palindrome without changing it …

    Check if a number is a palindrome without changing it into string Asked 7 years, 6 months ago Modified 2 years ago Viewed 13k times

  4. algorithm - Palindrome number in Python - Stack Overflow

    Palindrome number in Python Asked 3 years, 2 months ago Modified 4 months ago Viewed 1k times

  5. How to check for palindrome using Python logic - Stack Overflow

    Jun 27, 2013 · You are asking palindrome in python. palindrome can be performed on strings, numbers and lists. However, I just posted a simple code to check palindrome of a string.

  6. python - How to make my code print output only once when …

    Oct 30, 2022 · How to make my code print output only once when checking for a palindrome via a for loop [closed] Asked 3 years, 1 month ago Modified 9 days ago Viewed 26k times

  7. Checking whether a number is a palindrome, getting NameError

    0 I am new to programming in Python and am writing a program to check whether an integer with at most six digits is a palindrome. Here is my code:

  8. python - How to generate a list of palindrome numbers within a …

    If 4 is the requested length, the pattern is abba. generate_palindrome only needs to collect the palindromes for all needed length', and take care of the boundary. The algorithm is in O (2*p), …

  9. palindrome - palindromic numbers in python - Stack Overflow

    Mar 4, 2014 · Trying to find the largest palindrome that's the product of two three-digit numbers. Before I look up the infinitely more efficient and - more importantly - working solution, could …

  10. python - How to check if a string is a palindrome? - Stack Overflow

    print("string is not a palindrome") If a word is inputted, for example : rotor , I want the program to check whether this word is palindrome and give output as "The given word is a palindrome".