Python Global Variable || Modified || Function || Global Variables || Python
In this we are going to see a basic program that modifies global variables value in function in Python Programming Language.


c = 10


def mul():
    global c
    # Multiply by 10
    c = c * 10
    print("The value inside function: ", c)


mul()
print('The value outside the function: ', c)

# Coded By DHIRAJ SHELKE


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post