- 2
A string is a palindrome if it is identical forward and backward. For example âannaâ,âcivicâ,âlevelâandâhannahâare all example
4 RĂ©ponses
+ 3
to check if a string is a palindrome, you can take the input string, reverse it and compare the reversed version against the input string. if both strings are the same, the input string is a valid palindrome.
python has functions to reverse a string.
happy coding and good success!
+ 2
if you need help, why don't you show your attempt, or just do it all by yourself....
+ 1
Is that doubt, doesn't looks tbh
+ 1
I need help