Question: In the code below, the lifetime of variable ngoodbye is def main ( ) : name = Cam hello ( ) goodbye ( ) print
In the code below, the lifetime of variable ngoodbye is
def main :
name "Cam"
hello
goodbye
print name
def hello :
for nhello in range :
print Hello
def goodbye :
for ngoodbye in range :
main
print Goodbye
only when function hello is executing
the entire time the program is executing
when either function hello or function goodbye is execut
only when function goodbye is executing
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
