How to check palindrome numbers using list slicing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
2 Answers
+ 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