About 664,000 results
Open links in new tab
  1. (Palindrome) python using classes and instances - Stack Overflow

    Nov 7, 2017 · def isPalindrome (n): # n is a number, no self argument s = str (n) # convert the number into a string r = s [::-1] # get a reversed copy of the string (as a local variable) if (s == …

  2. Python Program to Check if a String is Palindrome or Not

    Feb 21, 2025 · The task of checking if a string is a palindrome in Python involves determining whether a string reads the same forward as it does backward. For example, the string …

  3. 7 Ways to Solve Palindrome Python Programs

    Jul 13, 2020 · In this article, we will learn how to check whether a string or a number is a palindrome or not in many different ways. In addition to it, we will solve some fun questions …

  4. Python Palindrome Checker Project: Simple vs Class-Based

    Oct 18, 2024 · Create a Python palindrome checker Project with two approaches: basic string manipulation and a class-based method using regular expressions. Compare both methods.

  5. Python program to check Palindrome number using object oriented approach

    Jul 23, 2019 · Checking palindrome number: Here, we are going to learn how to check whether a given number is a Palindrome number or not using class & objects (object-oriented approach)?

  6. Python reverse() for palindromes - Stack Overflow

    Dec 19, 2016 · I'm just getting started in python, and I'm trying to test a user-entered string as a palindrome. My code is: print('Is a palindrome') print('Is not a palindrome') This always returns …

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

    Jun 27, 2013 · The C style of checking for palindrome would involve a for loop like the following: for (int i=0; i<len (str)/2; i++) if str [i] != str [len (str)-i-1]: return False

  8. Python Program to Check If a String is a Palindrome (6 Methods)

    Oct 6, 2021 · In this tutorial, you’ll learn how to use Python to check if a string is a palindrome. You’ll learn six different ways to check if a string is a palindrome, including using string …

  9. Checking for a palindrome, using for-loop in Python and print …

    Oct 30, 2022 · I want to check if a input string is a palindrome. The palindrome-checker is case-insensitive. Here is what I got so far: # input word word = input("Enter a word: ") # make it …

  10. Palindrome in Python - AskPython

    May 6, 2021 · Today we are going to learn about the palindrome series and how to implement and identify a palindrome in Python. So let's dive right into it!

    Missing:

    • Class

    Must include:

Refresh