From 9788462af0ea9e28d87d4d29da43f3490670b76d Mon Sep 17 00:00:00 2001 From: AbuAlhassan1 Date: Sun, 26 Sep 2021 01:27:45 +0300 Subject: [PATCH] done :) --- python_pass.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/python_pass.py b/python_pass.py index 9616d7a..a10aaeb 100644 --- a/python_pass.py +++ b/python_pass.py @@ -12,3 +12,14 @@ class StringOperations: def reverse(self, *, to_be_reversed: str = None): raise NotImplemented('This method need to be implemented') + +class ReversedString(StringOperations): + def reverse(self, *, to_be_reversed: str = None): + return to_be_reversed[::-1] + +def main(): + ob = ReversedString(); + print(ob.reverse(to_be_reversed="nassahlAubA")) + +if __name__ == "__main__": + main()