Monday, January 27, 2020

Python Practice problem 4: Check for palindrome

Palindromes are the words that do not get changed when you put it in reverse order. So, "Mom", "Madam" are examples of the palindrome. This is a very simple problem where we use reversing a list using negative list slicing.


No comments:

Post a Comment