Modify Variable Outside Function In Python Definition In Coding