Professional Documents
Culture Documents
Variables
Variables
Example:
x,y,z=10,20,30
print(x)
print(y)
print(z)
Python variable types
Two types of variables:
Local variables
Global variables
Local variables:
Local variables are the variables that declared
inside the function and have scope within the
function
Example:
def add()
a=20
b=30
c=a+b
print(c)
add()
Global Variables