Python How To Use Global Variable In Function