Python Set Global Variable Value In Function Excel