Reverse Function In Python Syntax And Semantics