diff --git a/python_pass.py b/python_pass.py index 9616d7a..8ba6740 100644 --- a/python_pass.py +++ b/python_pass.py @@ -9,6 +9,13 @@ """ + 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] +revfun = ReversedString() +print(revfun.reverse(to_be_reversed='kadhim'))