Program For Reverse String In Python Using Global Variables In Functions