How To Update Global Variable In Python