Farming Simulator Mods


Check palindrome number in python


FS 19 Maps


check palindrome number in python Get In Touch. In other words, it has reflectional symmetry across a vertical axis. For example, 121 is a palindrome number, but 123 is not a palindrome number. So at every iteration we check whether the new number is palindrome or not. In the next article, we would be finding the answer to this question, so stay tuned. Mar 11, 2021 · Extract the last digit of number using the modulus also called Remainder. The word “palindrome” was first coined by the English playwright Ben Jonson in the 17th century, from If a number remains same, even if we reverse its digits then the number is known as palindrome number. Display the result, including a meaningful output message. Another run may give: Enter string to check for Palindrome:radar. Python: To Check given number is Palindrome or not: SkillPundit is the best place to gain knowledge which includes skills like programming,designing, problem solving , general information about our country, reasoning,mental ability etc. :- MaaM is a palindrome string if we read it in the order it is given it remains the same even if we reverse it and meaning also remains the same. A factor is an integer that can be divided evenly into another number. Check Palindrome Using Using While Loop In Python. A Palindrome number is a number which is same whether read from the beginning or from the end. Jan 16, 2019 · At least 1 upper-case and 1 lower-case letter. The most pythonic way to determine if a given string is a palindrome would be: def is_palindrome(string): return string == string[::-1] [::-1] slice reverses the string. We have to compare the original number with the Jul 19, 2021 · Now that you have an idea about the meaning of the pattern, you can start finding out how to check palindrome in python. But some entire sentences are also palindromes. Python Program to Check a Number is Palindrome or Not - In Hindi - Tutorial#28 In this video, I have explained a program to check whether a given number is palindrome number of not. Number)) This will result in: True. Note: An integer is a palindrome when it reads the same backward as forward. Here's the example code for check if palindrome python. Logical Explanation . A palindrome is a string which is same read forward or backwards. 7894 to 9000 palindrome numbers are. A prime number is an integer greater than 1 whose only factors are 1 and itself. To find the palindrome number in Python, there can be several ways. The palindrome number remains the same if its digits are reversed. 7997 8008 8118 8228 8338 8448 8558 8668 8778 8888 8998. First we have to find the reverse of a number using while loop and else if statement. ] For example: 11, 101, 131, 151, Apr 23, 2020 · In this Python Program, we will learn how to check whether a string is a palindrome or not. Writing a quick script to check whether a string is a palindrome or not is still a popular question for some entry level jobs in the field of data science to check the candidates logic Jun 19, 2021 · Write a Python Program to print Palindrome numbers from 1 to 100 or 1 to n or minimum to maximum with an example. Skip to content ‭+91 97223 47635‬ Python Programming. like c,c#,C++ and Python Language. # Python Program for Palindrome Number num = int (input ("Enter a number: ")) temp = num rev = 0 while num>0: remain = num % 10 rev = (rev * 10) + remain num = num // 10 if temp == rev: print ("Number is palindrome") else: print ("Number is not palindrome") It’s also May 17, 2021 · Palindrome string is a string that reads same from both directions – forward and backward. Mar 22, 2019 · A palindromic number or numeral palindrome is a number that remains the same when its digits are reversed. Oct 24, 2021 · Python Program to Check palindrome Words Introduction : हेलो दोस्तों तो इस पोस्ट में मैं आपको बताने वाला हूं कि आप Python की मदद से कैसे पता कर सकते हैं कि कोई भी वर्ड Palindrome है May 24, 2021 · In this article we will make a python program to check if a given number is palindrome or not. A palindrome number is a number that is equal to the reverse of itself. Yes it is so simple and elegant in Oct 30, 2021 · 121 -> original number . 4. Convert the decimal number into binary. May 24, 2021 · The given number 12345 is not palindrome. To check whether a number is a palindrome number or not we have to reverse it first. Objective: The goal is to check if the input number is a palindrome number or not and print the respective result. A two dimensional table is constructed to mark substring from position i till j as a palindrome. py at main · manan005/HacktoberFest2021-Python-1 Make a Python program to check if the given string is palindrome or not. Comparison via negative indexing. Print true if it is palindrome, false otherwise. The output of the program is. 564 all are negative numbers. Sample Input 1 : 656. 87, -34, -0. 98 100. Problem Description – The program takes a number and checks whether it is a palindrome or not. Traverse through the number using mod 10 and division by 10 operations and in each loop make sure to add Jul 13, 2020 · Check Palindrome Using reversed () Function In Python. Sep 26, 2019 · Problem statement. Sub Problems Get user input. After reversing it we compare the reversed number with the original Jan 14, 2020 · Now we will see how a simple Python program can be written to verify if a number is a palindrome or a non-palindrome. Python | Check whether the given value is palindrome or not. Checking Whether a Number is a Palindrome in Python Using Loop. What is Palindrome? A palindrome is a word, number, phrase, or other sequences of characters that reads the same backward as forward, such as civic or rotator or the number 14241. In this article we have shared two C programs to check if the input number is palindrome or not. Method 1. g madam or nurses run. First, you need to use the Google search engine and type the keywords ‘how to check palindrome in python’. So this is palindrome. Note: This approach can behave unexpectedly with numeric types outside of core Python. 2. Jun 19, 2021 · The common approach to check for the Python Palindrome Number is to reverse a given number. Oct 24, 2021 · Python Program to Check palindrome Words Introduction : हेलो दोस्तों तो इस पोस्ट में मैं आपको बताने वाला हूं कि आप Python की मदद से कैसे पता कर सकते हैं कि कोई भी वर्ड Palindrome है Palindrome. You have to use below-given example syntax to create your own complex number variable. num = number # define a method for checking number is Palindrome or not def isPalindrome (self) : # copy num attribute to the temp local variable temp = self. The second part of the complex number is the imaginary part with ‘j’. So is the integer is same in forward or reverse order both, then the number is palindrome. SkillPundit is world's best platform to show your talent. Use a while true loop and handle spaces and punctuation. or Write a program to find out all palindrome numbers present within a given range in Python. A palindromic number is a number that remains the same when its digits are reversed. It functions as a comparison between the actual word, and the reverse of the word that results in an exact match, resulting in the matched value is True. OUTPUT: Print “palindrome” if the number is palindrome else print “not palindrome”. Whereas ‘MOTOR’ is not a palindrome because it does not read same from both directions. The following is the shell script to check whether the number is palindrome or not: echo enter n. Till then, keep coding!!! Here's the article for the above question: WAP (Python) to check if a string/number is a palindrome or not F is_palindrome(s) R s == reversed(s) 360 Assembly [] * Reverse b string 25/06/2018 PALINDRO CSECT USING PALINDRO,R13 base register Feb 24, 2021 · 2. For extracting any digits from a number, we need to divide the Feb 26, 2020 · Python Math: Exercise-22 with Solution. Some list are: 11 22 121 12321 Jun 11, 2020 · Python Program to Check if a Number is a Palindrome - This is a Python Program to check whether a given number is a palindrome or not. C Program to check whether given Integer is Palindrome or Not. Summary: This tutorial discusses how to write a Python program to check whether the number is palindrome or not. If you are a Python Web developer you may need this CGI script to run on your server: Aug 14, 2019 · The output: Enter string to check for Palindrome:hello python. Write a program that reads a string from the user and uses a loop to determines whether or not it is a palindrome. You can check if the variable is an instance the Number class, with the isinstance () function: import numbers variable = 5 print ( isinstance ( 5, numbers. io missions i was playing with a task to find first palindromic prime number (palprime) greater than given argument. ← Python String Program To Count Vowels Python Program to output Calendar for a month →. 1. Apr 02, 2019 · A palindrome is anything that reads the same backward and forward. CODE: def reverse(n): rev = 0 while(n >0): rem = n % 10 rev = (rev * 10) + rem n = n//10 return rev def checkPalindrome(num): rev = reverse(num) if Jun 23, 2019 · Source Code – Python program to check if a number is palindrome or not. This article discusses different approaches to check if a number is negative in python. The reverse of 123 is 321. Let's discuss all the ways one by one. We can observe that they are symmetrical. 2 4 6 . Otherwise, it is not a Palindrome number. Dec 22, 2019 · Python code to check palindrome number: # Define a class for Checking Palindrome number class Check : # Constructor def __init__ (self,number) : self. For example: “dad” is the same in forward or reverse direction. Ex. Palindrome-Checker ¶. Problem Description The program takes a number and checks whether it is a palindrome or not. Apr 02, 2019 · Prime number. This will provide the most updated information. To check if the string is a valid palindrome, you have to use re. Check Palindrome by Reversing the String For … Continue reading "Python | Check Whether a Jun 12, 2020 · Check if the given string is palindrome or not. We would like to construct an algorithm to input a string of characters and check whether it is a Write a program to check whether given number is Palindrome or not using do-while loop. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more. Problem To find if a word/number is a palindrome or not. It is equal to: ''. There are several ways to check whether the given number is palindrome or not some of them are: Using while loop to check whether the number is palindrome The number 121 is Palindrome. This python program allows the user to enter the maximum limit value. and we also write about computer programming. madam 2. Some list of palindrome numbers are : 11 22 121 41214 May 19, 2020 · A palindrome number means if reverse of a number and original number both are equal then given number is Palindrome or not. Oct 24, 2021 · Python Program to Check palindrome Words Introduction : हेलो दोस्तों तो इस पोस्ट में मैं आपको बताने वाला हूं कि आप Python की मदद से कैसे पता कर सकते हैं कि कोई भी वर्ड Palindrome है Check if given String is Palindrome in Python. ] import re Continue = 1 Quit = 2 def main () : choice = 0 Nov 07, 2017 · Palindrome or Symmetry (Id-2338) Given a set of ‘n’ strings, write an algorithm and the subsequent Python code to check if the string is a Palindrome string or Symmetry string. MOM, DAD, MADAM, REFER are the palindrome letters. The string is not a Palindrome. Refer the sample input and output statements for more clarifications. Java Program to Check the Number is Palindrome or Not Dec 10, 2019 · Enter a range in numbers (num1-num2): 7894. #program to accept a number from the user and check if it is palindrome or not. Python: palindrome number test challenge. Logic. Here we will be learning reversal pf Program to check palindrome number in python. To check whether a number is a palprime we need to check whether it is both a prime and a palindromic Jul 12, 2021 · Enter an integer: 12321 12321 is a palindrome number Use the String Reversal Approach to Check if a Number is Palindrome in Python. sub() on a set of alphanumeric characters that need to be replaced with its lowercase character. civic 3. STOP; 3. For palindrome_table [ i ] [ j ] to be true, in between substring i. An interesting problem that can be easily solved using the deque data structure is the classic palindrome problem. Checking Whether a Phrase is a Palindrome in Python. Explanation: In line number 1 we have declared a variable named as num and given value 0. Python program to check if a number is palindrome or not snapshot is given below: Collection of Beginner to Intermediate level Python scripts contributed by members and participants. For example, 101 and madams are number and string palindrome respectively. It is a one-liner for reversing an iterable, i. join(list(reversed(string))). INPUT: line 1: number. With == we compare the equality, then returning True or False. Given a string input, we need to create a python function to check whether it is a palindrome or not. Help him to code this logic in Python. In this program, we took out the last digit of every number, create a new number in the reverse order and reduce the old number. A string is referred to be palindrome if the reverse of the string is identical with string. If you read Feb 26, 2020 · Python Basic - 1: Exercise-72 with Solution. Sample Output 1 : Palindronme (Reverse of 656 is 656) Oct 24, 2021 · Python Program to Check palindrome Words Introduction : हेलो दोस्तों तो इस पोस्ट में मैं आपको बताने वाला हूं कि आप Python की मदद से कैसे पता कर सकते हैं कि कोई भी वर्ड Palindrome है 4. Python Program to check a number is a palindrome or not using recursion In this program, you will learn how to check a number is a palindrome or not using recursion in Python. Input. For an example suppose the number is 454, if we reverse it will be 454 again. Method 1: The most naïve solution which comes to mind is to reverse the number and check if it equals the input number. The variable div is initialized to n-1. “ [1] Here are a few fun examples: Jun 04, 2021 · Homepage / Python / “wap in python to check a number is palindrome or not” Code Answer’s By Jeff Posted on June 4, 2021 In this article we will learn about some of the frequently asked Python programming questions in technical like “wap in python to check a number is palindrome or not” Code Answer’s. W3Schools offers free online tutorials, references and exercises in all the major languages of the web. A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward. Logic: Get the decimal number from the user. Oct 06, 2021 · Check if a Number is a Python Palindrome. Write a python program to find the next smallest palindrome of a specified number. In this program, we will be using if and while Python Program to check a number is palindrome or not In this program, You will learn how to check a number is palindrome or not in Python. Minimum 8 characters and Maximum 50 characters Oct 24, 2021 · Python Program to Check palindrome Words Introduction : हेलो दोस्तों तो इस पोस्ट में मैं आपको बताने वाला हूं कि आप Python की मदद से कैसे पता कर सकते हैं कि कोई भी वर्ड Palindrome है Apr 02, 2020 · A palindrome is any number or string which remains unaltered when reversed. Here we will write a program to check whether the string is palindrome or not in Python. e. Write a program to display all prime palindrome numbers between 10 and 1000. Remove the last digit by using division operator. Problem Description The program prompts the user for a string and determines whether it is a palindrome with the help of a stack. If you like the tutorial share it with your friends. Python Server Side Programming Programming. Solution: Logic is – Read a string (in fact, a sentence). A palindrome is a string that reads the same forward and backward, for example, radar , toot, and madam. It can be done as follows: number = int (input ()); reverse = 0. We can use the string reversal approach in Python to check if a number is a palindrome. Palindrome are the numbers for which reverse is exactly same as the original one. This is an example of how to check whether the given value is palindrome or not. a=int (input ("Enter a number: ")) f=a. Python program to check if String is Palindrome or not: Oct 24, 2021 · Python Program to Check palindrome Words Introduction : हेलो दोस्तों तो इस पोस्ट में मैं आपको बताने वाला हूं कि आप Python की मदद से कैसे पता कर सकते हैं कि कोई भी वर्ड Palindrome है Sep 26, 2020 · WAP to check if a string/number is a palindrome or not. There are various functions in this module that can be used on the strings. [A string is a palindrome if it is identical forward and backward. 6. Python Program to print Palindrome numbers using While Loop. A man, a plan, a canal: Panama. In Python, the palindrome methodology is of three different types: the single word palindrome, the multiple words palindrome, and the number palindrome. Declare Complex to Create Number Variable in Python. Reverse the input. Here are a few examples: racecar, level, kayak, civic, and more. Ram is asked to code the logic to find if a given sentence or a word is a palindrome or not. Before we start our program, there is a need to know what is a palindrome? The palindrome is set to be a number whose reverse is said to be equal. e substring from ( i + 1 ) and ( j - 1 ) should also be a palindrome. We then create a new variable to store the reversed number and initialize it with 0. Write a Python program to check whether a given integer is a palindrome or not. . For example, 55 is a palindrome number. The challenge was to make code as small as possible. In mathematics, a negative number is a real number less than 0. This is a Python Program to check whether a given number is a palindrome. The for loop and range () function is used to calculate the factorial of a number. A palindrome number is a number that remains the same when its digits are reversed. Let’s see how we can do this using the string indexing method: Palindrome program in python language What is a palindrome? A palindrome is a number or letter that remains the same even if the number and letters are inverted. This is the most straightforward non-optimal solution. For Example:-A number is 526625 . 121. It covers the fundamentals of python programming such as its syntax, variables, data types, operators, tokens and string. Oct 26, 2021 · Python Program to Check Palindrome Number. Check if the input is an integer or string. For example, 16461. This is a Python program to check whether a string is a palindrome using a stack. The easiest way to check if a number is a Python palindrome, is to convert the number to a string and apply any of the methods mentioned above. Solution. For example if the number is 125, next smallest palindrome is 131. The string is a Palindrome. Write a PYTHON to find out all palindrome numbers present within a given range. Jan 08, 2020 · Palindrome Number in Python. 18. Explanation. We can use the [::-1] short-hand operation for the palindrome check. 121 . Compare the original value with reverse value. Output. Some common words, like "level" are palindromes. Example. That means if any number is reversed or we arrange the numbers in opposite order then will be same as it is. Suppose we have integer. If it is False, the number will either be zero or negative. Approach : Read an input number using input() or raw_input(). For example, the number 121 is a palindrome because the reverse of it the same number i. Take the input string from the user and store it in a variable; Reverse the string and compare it to the base string; Print the result; End; Program Python Palindrome Method: Detect Words, Sentences Check words and sentences to see if they are palindromes. Then we will check condition, if original number is equal to the reverse of a number. Write a loop which iterates on a string word-by-word. check if a sentence is palindrome python code example Example: palindrome python #A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward. Apr 23, 2020 · Python program to check if number is palindrome (one-liner) Last Updated : 23 Apr, 2020 Sometimes, we have an application of checking a number is palindrome or not and it’s quite common while day-day programming or competitive programming, it’s easy to reverse a number and check it but sometimes for readability and reducing lines of code Jan 14, 2021 · If you want to deep dive further, do check out this free course on Palindrome in Python. Take the value of the integer and store it in a variable. We have to find the reverse of the number. 121 -> palindrome number -> when reversed it is equal to the original number. Negative numbers are not palindromic. Let us consider the following example. Get an input number from the user by the means of the input() method. Jan 25, 2021 · A good way to check if a variable is a number is the numbers module. Jan 19, 2021 · Python program to check whether the given number is a palindrome number or not. b) Characters in between make a palindrome. To check if it is prime . 285 total views, 1 views today. Python Palindrome Program using While Loop “A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam or racecar or the number 10201. Apr 04, 2017 · Python program to check an integer number is an Armstrong number or not. Checking a number is palindrome Jul 19, 2020 · A palindrome is a word (or a sequence of characters) which reads the same backward and forward. num # initialise local variable result Nov 01, 2021 · What Is A Palindrome? Like every programmer does, let's google it! 😉 googles A word, phrase, or sequence that reads the same backwards as forwards, e. If the newly formed number is same as the older one, then it is a Palindrome number else it is not. A string is said to be palindrome if the string and reverse of the string will be the same. Jul 09, 2020 · Write a program to determine if given number is palindrome or not. Remember to do a case insensitive check. Jun 01, 2021 · Write a program in C# Sharp to check whether a number is a palindrome or not. Enter a number: 2 Positive number. We check this in the expression of if. A palindromic number or numeral palindrome is a number that remains the same when its digits are reversed. Post navigation. - HacktoberFest2021-Python-1/check Palindrome number. 7. 5. Iterative method. At the last check the original number and reversed number using If-Else statement. In this program, we are going to check whether the given number is palindrome or not by using python. Oct 24, 2021 · Python Program to Check palindrome Words Introduction : हेलो दोस्तों तो इस पोस्ट में मैं आपको बताने वाला हूं कि आप Python की मदद से कैसे पता कर सकते हैं कि कोई भी वर्ड Palindrome है Reg-ex module in Python: To work with regular expressions, Python has a built-in module called regex module. Other example is ‘Malayalam’ etc. Problem Solution – 1. To check a number or string is palindrome or not, we have four ways:-Checking a number is palindrome or not; Checking a string is palindrome or not Using slice; Using an inbuilt function. Enter string:madam madam is a palindrome! Check if a given number is a prime number using recursion in python? In the below code, The number n is passed as an argument to a recursive function and the divisor count is initialized to NULL. Palindrome Numbers. Firstly, we will take the input from the user whose factorial is to be found. A Palindrome Number is one whose reverse is equal to the original number itself. [Hint: A number which is prime as well a palindrome is said to be 'Prime Palindrome' number. For example, the string, ‘ROTOR‘, is a palindrome because it reads same from both forward and backward directions. In other words after reversing any number, word or phrase if it remains the same as original then it is a palindrome. The number 123 is not a Palindrome. Oct 24, 2021 · Python Program to Check palindrome Words Introduction : हेलो दोस्तों तो इस पोस्ट में मैं आपको बताने वाला हूं कि आप Python की मदद से कैसे पता कर सकते हैं कि कोई भी वर्ड Palindrome है Sep 20, 2019 · Convert the given decimal number into binary number then check whether it is Palindrome or not without using an array. In line number 2 we have taken a while loop for checking weather the num variable is less than or equal to 100, if the condition will be satisfied then only rest code will be executed else not. Python does not have a random() function to make a random number, but Python has a built-in module called random that can be used to make random numbers: Example Import the random module, and display a random number between 1 and 9: Mar 22, 2016 · This article is based on Free Code Camp Basic Algorithm Scripting “Check for Palindromes”. A string is said to be a palindrome string if one half of the string is the reverse of the other half. Nov 30, 2020 · So this article shows you various ways you can write a program to check whether a given input is a palindrome or not, using Python. A string is a palindrome if it reads same from forward as well as backward for example madam. Jun 01, 2014 · If both the string matches print “Palindrome” or else print “Not Palindrome” Some palindrome words and sentences to check this script: 1. Output 2: Enter a number: 0 Zero. To find the Palindromic longest substring in a string. Sep 18, 2021 · A palindrome number is a number that remains the same when its digits are reversed. Add the Remainder digit in a new variable ‘rev’. A string is said to be palindrome if the reverse of the string also remains the same and if the original string gives some meaning so the meaning of the reversed string should also remain the same. For Example a number 525 has reverse 525, so it is called Palindrome number. No lemon, no melon. Method of verification. For example: 121, 11, 414, 1221, 74747 are the palindrome numbers. A number is positive if it is greater than zero. Explanation: Here 12345 and 54321 are not equal so it is not a palindrome Checking Palindrome in Python. For example 12321 is a palindrome number because it remains same if we reverse its digits. We have to check whether the integer is palindrome or not. It is a palindrome number. The naive algorithm is to increment the number until we get a palindrome. If you want to create a complex number variable in Python. 9000. Sample Solution: Python Code: Jun 16, 2018 · We will write the python program to check for both number and string. As there will be a space between two words, if you use split () function based on white-space, you will get one word at a time in a loop. Case 2: Enter the number: 123. Example: 131,16461 etc. C Program to check Palindrome Number May 22, 2020 · Python Program to Print Palindrome Number in a Given Range Learn With Safdar Dogar May 22, 2020. Declare and initialize the Fact variable to 1. You can choose ‘Google News’ as the search engine. The first part of the complex number is the real part with real value. Like 15951, for example, it is "symmetrical". Checking if a number is negative by using an if-else statement. , lists We can check the palindrome string using either loops or isPalindrome () function. Mar 26, 2021 · Let see python program to print factorial of number 4. May 26, 2021 · Write a Python program to take a number and check if it’s a palindrome or not Question Now the trend has changed a bit, interviewer do not shy away from asking basic python programs. Sample Input1: Enter the word : Malayalam Sample Output1: Yes, the string is a palindrome ! Mar 23, 2020 · In this post, we will write a shell script to check whether the number is palindrome or not. Next, this program prints palindrome numbers from 1 to user-entered value. Click here to copy this code snippet. Write a program that prompts the user to input a number and determine whether the number is palindrome or not. Program 1: # Python program to check if a string is # palindrome or not # function to check palindrome string def isPalindrome(string): result = True str_len = len (string) half_len= int (str_len/ 2 ) for i in range ( 0, half_len): # you need to check only half Python Program - Check whether a Number is Palindrome or not A number is known as a Palindrome number if the reverse of the number is same as the number. Recently, in one of the check. We will go through some methods to check if a string or a number is a palindrome or not. Take the number as input from the user and store it in a variable. We can do this by two methods −. Reversal by slicing. Dec 01, 2011 · Given a number, find the next smallest palindrome larger than the number. 1) using while loop 2) using recursion. Oct 24, 2021 · Python Program to Check palindrome Words Introduction : हेलो दोस्तों तो इस पोस्ट में मैं आपको बताने वाला हूं कि आप Python की मदद से कैसे पता कर सकते हैं कि कोई भी वर्ड Palindrome है Dec 09, 2020 · Python program to display all the palindrome words appearing in an input text. JAVATPOINT, PROGRAM, JAVA are not the palindrome letters. Then remove the first and last digit of the binary. Check the first and last digit of binary which is equal or not. If they exactly matched, then it is a Python Palindrome number. A palindrome reads the same forwards and backwards. Palindrome. Check whether the value entered is an integer or not. Or we can also say that number is symmetrical. To check if a number is a Palindrome number or not, we first take input of the number, create a copy of the number taken as an input. This is also tested in subsequent expression. At last, print is used to get the factorial of a number. 3. To print all the prime numbers up to N, we start one loop from 2 to N and then inside the loop we check current number or “num” is prime or not. For example, -2, -67. Create the reverse of the string or the number; Now check if the reverse of the string is the same as the original string. For example 121 will always be same whether you read it from starting '1' or ending '1'. It takes input from the user to check palindrome. check palindrome number in python

awm bh7 h1b yfi olu 34d dce kjy xes e4n auk klg h0u 664 uc5 lvo b8l sau ty3 rr8

-->