For a number to be palindrome, the reverse of the number and the original number must be the same.
<h3>The main program</h3>
The program written in Python, where comments are used to explain each line is as follows:
#This gets input for the number
num = input()
#This reverses the number
numrev = num[::-1]
#If the reverse and the original number is the same
if num == numrev:
#This prints Palindrome
print("Palindrome")
else:
#Otherwise, it prints Not palindrome
print("Not palindrome")
Read more about Python programs at:
brainly.com/question/26497128
Answer:
I would say the second one
Explanation:
it makes sense cause if you're able to fix the problem that's how. if not then the last one
lst = short_names.split()
print(sorted(lst,reverse = True))