“palindrome Checker Python” Réponses codées

Vérification palindrome en utilisant la boucle en python

p = list(input())
for i in range(len(p)):
    if p[i] == p[len(p)-1-i]:
        continue
    else:
         print("NOT PALINDROME")
         break
else:
    print("PALINDROME")
Curious Crane

wap in python pour vérifier un nombre est palindrome ou non

#A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward.
#Ex: madam or racecar.
#CODE BY VENOM
a=input("Enter you string:\n")
w=str(a)
if w==w[::-1]: # w[::-1] it will reverse the given string value.
	print("Given String is palindrome")
else:
	print("Given String is not palindrome")
#CODE BY VENOM
#CODE BY VENOM
Adventurous Antelope

palindrome Checker Python

value = input("Enter a Word: ")

if value == value[::-1] :
    print(value)
    print(value[::-1])
    print("THIS WORD IS A PALINDROME")
else :
    print(value)
    print(value[::-1])
    print("THIS WORD IS NOT A PALINDROME")
Trojan Horse

mots palindrome python

mes=input("Enter the word and see if it is palindrome ")
if mes==mes[::-1]:
    print("This word is palindrome")
else:
    print("This word is not palindrome")
Zany Zebra

fonction palindrome python

bilangan = (5 % 3 ** 2) + (3 + 2 * 2) * (4 - 2) 
print(bilangan)
Shy Squirrel

Réponses similaires à “palindrome Checker Python”

Questions similaires à “palindrome Checker Python”

Plus de réponses similaires à “palindrome Checker Python” dans Python

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code