Program For Reverse String In Python Using Global Variables