+ 5

How to check palindrome numbers using list slicing

We can also reverse the number using list slicing so I want to check palindrome numbers using list slicing how I can do this

9th Jun 2020, 12:08 PM
Runtime Terror
Runtime Terror - avatar
3 odpowiedzi
+ 6
If reverse of string is equal to original string ,string[::-1]==string
9th Jun 2020, 12:12 PM
Abhay
Abhay - avatar
0
Thanks! This info helps me too.
9th Jun 2020, 10:12 PM
Diana López
Diana López - avatar