How to Write a Function for Palindrome in Python programming language

preview_player
Показать описание
In this lesson we're going to talk about that how to write a function for palindrome in python programming language. This simple function will work just for palindrome words.
Рекомендации по теме
Комментарии
Автор

def isPalindrome(str):
return str[::-1] == str

You don't need the if - but well done for using the slicing method rather than some character by character comparison.

tonyflury
Автор

Without using Slicing. HOW TO CHECK WHETHER IT PALIN OR NOT ( using fuction )????

anujoshua
visit shbcf.ru