Take a string from user at runtime. Check that using those characters of string is
it possible to make a palindrome string?If yes the Print the palindrome
string.
Answers
PYTHON STRING PALINDROME:
Answer:
CODE:
a=input("Enter an string:")
a = a.casefold()
reverse = reversed(a)
if list(a) == list(reverse):
print("The string is a palindrome.")
else:
print("The string is not a palindrome.")
output:
Enter an string:boob
The string is a palindrome.
Enter an string:python
The string is not a palindrome.
TO KNOW MORE :
1.Write a Python program to find length of the string .using Len()
https://brainly.in/question/13051313
2.Write a python program to accept a string and display the resultant string in reverse order.The string should not contain all the characters at the even position of accepted string ignoring blank spaces. Accepted string: anappleadaykeepsthedoctoraway Resultant string: aapedyepteotrwy Expected output: ywrtoetpeydepaa
https://brainly.in/question/10433404