Reverse string in python without using function.