GiovanniBruno22 / PythonBeginners

This repository is meant for new developers to submit first pull requests to and get reviews from peers.
17 stars 21 forks source link

Symmetrical or Palindrome #43

Closed GiovanniBruno22 closed 1 year ago

GiovanniBruno22 commented 1 year ago

Write a python script to check whether the input string is Symmetrical or Palindrome.

yr1404 commented 1 year ago

I would like to write this program.

GiovanniBruno22 commented 1 year ago

Sure thing, I will assign this to you 🙂

issamansur commented 1 year ago

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')

?