Modify Variable Outside Function In Python Definition