2022-10-20 21:22:14 +00:00
|
|
|
def main():
|
|
|
|
s = input('Introduza uma string >> ')
|
|
|
|
print(ispalindrome(s))
|
2022-11-10 23:20:38 +00:00
|
|
|
|
2023-05-16 20:14:36 +00:00
|
|
|
|
2022-10-20 21:22:14 +00:00
|
|
|
def ispalindrome(s):
|
|
|
|
pal_s = s[::-1]
|
2022-11-10 23:20:38 +00:00
|
|
|
return pal_s == s
|
|
|
|
|
2023-05-16 20:14:36 +00:00
|
|
|
|
2022-10-20 21:22:14 +00:00
|
|
|
if __name__ == "__main__":
|
2023-05-16 20:14:36 +00:00
|
|
|
main()
|