#### Category : palindrome

This may sound like a stupid question but I had to ask. The following code checks whether a word entered by the user is a palindrome or not. When I use the below code, it says "This word is a Palindrome" for all the words. word = input("Enter a word for a Palindrome : ") ..

enter image description here I’m pretty stuck on this exercise, Does anyone have a direction? Source: Python..

i try to make program to find he length of the palindrome that can be made from a string in python, but i got wrong result. the program should: input: 5 wewewe pelatnas kedua di jogja and the output is length of string can be make palindrom: 5 3 1 1 3 this my program ..

I have found a recursive solution to check whether a linked list is a palindrome: def isPalindrome(self, head: ListNode) -> bool: self.front_pointer = head def recursively_check(head): if head: if not recursively_check(head.next): return False if self.front_pointer.val != head.val: return False self.front_pointer = self.front_pointer.next return True return recursively_check() After the ‘if head’ statement: Why are we returning ..

in the python code below, I need to use recursive functions to find all palindromic primes between two integers N, M, supplied as input. (start and endpoints are included). • A palindrome number is a number that reads the same from the front and the back. Examples are: 212, 44, 9009, 4567654. • To calculate ..

this is my code, but there is still an error, I will make the application determine whether the sentence is a palindrome or not a palindrome from tkinter import * class MembuatKolomTeks(Frame) : def __init__(self, master) : self.buatTeks() self.buatKolom(master) self.buatTombol() def buatTeks(self): Label(text="Inputkan Kalimat").grid(row=0) def buatKolom(self, master): self.kolom1 = Entry(master) self.kolom1.grid(row=0, column=1) def buatTombol(self): Button(text=’Hasil’, ..