Write a program that reads a string and checks whether it is a palindrome string or not.
QGP:
Which Programming Language do you want it in?
https://brainly.in/question/9781925
Answers
Answered by
26
- string = input("Enter a string:")
- length = len(string)
- mid = length/2
- rev = -1
- for a in range(mid) :
- if string[a] == string[rev] :
- a += 1
- rev -= 1
- else :
- print (string, "its not a palindrome")
- break
- else :
- print (string, "is a palindrome")
https://brainly.in/question/9753572
Answered by
0
Explanation:
check it out in photo answer is there
Attachments:
Similar questions