“Como verificar se uma palavra é um palíndromo em python” Respostas de código

Verificação de palíndroma usando o loop em 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 em python para verificar um número é palíndroma ou não

#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

Verificação do Python Palindrome

#Palindrome check
word = 'reviver'
p = bool(word.find(word[::-1]) + 1)
print(p) # True
Tejas Naik

Palavras Palíndrome 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

Como verificar se uma palavra é um palíndromo em python

DFDDFFFD
Clean Cat

Respostas semelhantes a “Como verificar se uma palavra é um palíndromo em python”

Perguntas semelhantes a “Como verificar se uma palavra é um palíndromo em python”

Mais respostas relacionadas para “Como verificar se uma palavra é um palíndromo em python” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código