[Tutor] program flow
Payal Rathod
payal-python@staticky.com
Tue Jul 1 23:18:03 2003
Hi,
Gregor example on "magic" funtions has set me thinking. I am wondering
how a program flow really is now. Consider a small example.
#!/usr/bin/python
x = 1
y = 2
def sum1(a,b):
.....
.....
.....
return a
return b
print "Magic Functins! Hello World!"
z = sum1(x,y)
How does python flow works. It works out 1st 3 lines and then when it
comes to def sum1(a,b): what happens or it jumps that part and goes
directly to "Magic Functins! Hello World!" and then to z = sum1(x,y)
from where it jumps to def sum1(a,b):
What is the flow here?
With warm regards,
-Payal
--
"Visit GNU/Linux Success Stories"
http://payal.staticky.com
Guest-Book Section Updated.