Closed GiovanniBruno22 closed 1 year ago
I would like to write this program.
Sure thing, I will assign this to you 🙂
I'm sorry but...
def is_palindrome(string: str)->bool:
return string == string[::-1]
any_string = input()
if is_palindrome(any_string):
print('String is a palindrom')
else:
print('String is not a palindrom')
?
Write a python script to check whether the input string is Symmetrical or Palindrome.