Hello i have a weird doubt..
MY code is
def prints():
print " I WILL DIE HEHE"
def add(a,b):
next = a
print " Added sum is %d " % (next + b)
next = prints()
w = int(raw_input("Give a"))
g = int(raw_input("Give b"))
add(w,g)
Now the problem is why does the function prints() gets executed while i assign it to next i.e. next = prints(). I am little confused.
Because you are calling it,
will execute where as
is assigning the name, and then calling the new name.
Noteback, I also call it
neasnextshadows a builtin method