Python Program to Check if a Number is a Palindrome Data 11/08/2019 Autor Andrei Olteanu Categorie Soluții -2 331 Configurare noua (How To) Situatie Solutie n=int(input("Enter number:")) temp=n rev=0 while(n>0): dig=n%10 rev=rev*10+dig n=n//10 if(temp==rev): print("The number is a palindrome!") else: print("The number isn't a palindrome!") Tip solutiePermanent Voteaza Up Down (1 din 4 persoane apreciaza acest articol) ShareTweetShare Despre Autor Andrei Olteanu Solutii Asemanatoare Surse potentiale pentru “artefacte verzi pe ecran” sau mesaje precum “lungimea prea lunga a cablului” -1 How to test your Computer’s RAM for problems 0 Several tools for observing screen pixels’ transition times 0 What to do if you forget your Mac’s Password 1 Cum verificați dacă vă puteți actualiza memoria RAM pe Windows -2 Cum eliminați simbolurile de paragraf din Microsoft Word 2 Leave A Comment? × Cancel Reply Save my name, email, and website in this browser for the next time I comment. eight − 6 =
Leave A Comment?