You are on page 1of 1

__name__ is an built in variable which will return the name of the module.

__name__ is set to '__main__' when we run our program as main program if our program is being
imported by some other program then __name__ is set to module name.

from multiply import mul

print(mul(4,4))

#print(__name__)

def mul(a,b):

return a*b

if __name__=='__main__':

print(mul(2,3))

print(__name__)

You might also like