DAY 7 of PYTHON top 100 questions : from Basic to Advanced !!
Write a Python program to check whether a given string is a palindrome or not:-
str=input("ENTER THE STRING : ")
if str == str[::-1]:
print("YES")
else:
print("NO")
Output:
ENTER THE STRING : eye
YES
The code first prompts the user to inpu...
priyachakraborty.hashnode.dev1 min read