Functions

Python : How to use global variables in a function ?

In this article we will discuss difference between local & global variable and will also see ways to access / modify both same name global & local variable inside a function. Table of Contents Local variable vs Global variable Global & local variables with same name Use of “global†keyword to modify global variable inside a …

Python : How to use global variables in a function ? Read More »

Scroll to Top