From b05bd6b4be3af65ae82b7182d96369c5c15a33c2 Mon Sep 17 00:00:00 2001 From: Manas Asati <44468527+ManasAsati@users.noreply.github.com> Date: Thu, 31 Oct 2019 21:48:26 +0530 Subject: [PATCH] Create Palindrome check --- Check Palindrome/Palindrome check | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Check Palindrome/Palindrome check diff --git a/Check Palindrome/Palindrome check b/Check Palindrome/Palindrome check new file mode 100644 index 0000000..fb732a9 --- /dev/null +++ b/Check Palindrome/Palindrome check @@ -0,0 +1,5 @@ +def check_palindrome(string): + return string == string[::-1] + +if __name__ == "__main__": + print(check_palindrome("abcba")