How to check palindrome numbers using list slicing | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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