Public Variable || Matlab Set || Basic Program || Global Variable || Python
In this we are going to see a basic program of global variables in Python Programming Language.



def f():
    print("Inside Function", s)


# Global scope
s = "I love HelpForCoders"
f()
print("Outside Function", s)

# 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