Python program to check whether a number is palindrome or not.||palindrome number in python.

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Just a suggestion !
You can use string silicing rather than compiling loop for palindrome to reduce compilation time .


l=input("Enter a number : ")
a=l[ : : -1]
if a==l :
print("The no. is palindrome ! ")
else :
print('The no. is not a palindrome ! ')

StudentShayar
Автор

Code is code use str or int result is what that matter

dakshbhardwaj