Computer Science, asked by sreyashisinha870, 1 day ago

Write a python program to print palindrome of a string . Take the String

as user Input
plssss ans me asap..plss joto tratri somvob uttor dio..​

Answers

Answered by attitudeboy2
0

Palindrome Program

  • str = 'JaVaJ'
  • strstr = str.casefold()
  • # This string is reverse.
  • rev = reversed(str)
  • if list(str) == list(rev):
  • print("PALINDROME !")
  • else:
  • print("NOT PALINDROME !")
Answered by soumyojyoti77
2

Answer:

a=input("Enter String:")

b=a[-1::-1] if(a==b):

print("Palindrome String")

else:

print("Not Palindrome String")

Explanation:

Hope it's Helps... ❤️

btw... kamon acho?

Similar questions