Global and local variable in Python

Python Variable:                A variable is a container for storing data. It allows you to label and store data. Variables can store strings, numbers, lists or any other data type. Example: name = ‘Thomas’ name is the variable which stores the string data type. When we write two values to the same variable, it overwrites …

Global and local variable in Python Read More »