//code written by me
def my_func():
print "it is happening inside class"
my_func()
def my_func2(a,b)
return a+b
print my_func2(1,4)
// then i saved this as func.py on my dextop
//address of code is "C:\Users\admin\Desktop"
//then i opened python software and for compilation i wrote" >>> python Desktop/func.py "
//
def my_func():
print "it is happening inside class"
my_func()
def my_func2(a,b)
return a+b
print my_func2(1,4)
// then i saved this as func.py on my dextop
//address of code is "C:\Users\admin\Desktop"
//then i opened python software and for compilation i wrote" >>> python Desktop/func.py "
//