GiovanniBruno22 / PythonBeginners

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

Symmetrical or Palindrome #43

Closed GiovanniBruno22 closed 10 months ago

GiovanniBruno22 commented 10 months ago

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

yr1404 commented 10 months ago

I would like to write this program.

GiovanniBruno22 commented 10 months ago

Sure thing, I will assign this to you 🙂

issamansur commented 10 months 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')

?