diff --git a/2022-Oct/01 Oct 2022/dev_zohaib.py b/2022-Oct/01 Oct 2022/dev_zohaib.py new file mode 100644 index 00000000..fddd3fda --- /dev/null +++ b/2022-Oct/01 Oct 2022/dev_zohaib.py @@ -0,0 +1,18 @@ + +def isPalindrome(s: str) -> bool: + """ + Problem: + Accept a String from user & check if Palindrome or NOT + + input: "madam" + output: True + :param s: + :return: + """ + return s == s[::-1] + + +if __name__ == '__main__': + s = input("Enter a string: ") + print(isPalindrome(s)) +