Computer Science, asked by tripathisagar2733, 4 months ago

Write a program to input a string and check, if it is a palindrome string

using a string slice​

Answers

Answered by Anonymous
3

Answer:

hello,

its using python

Explanation:

#program to input a string and check, if it is a palindrome string

a=str(input("enter the string"))

b=a[::-1]

if a==b:

   print("palindrome")

else:

   print("not a palindrome")

hope it helps you

please mark brainliest

@ItzSnowySecret07

Similar questions