Question: CODE def add2numbers(): a = 1 + 2 def test(): tmp = add2numbers() return tmp for i in range(5): add2numbers() test(). In the code above,

 CODE def add2numbers(): a = 1 + 2 def test(): tmp

CODE def add2numbers(): a = 1 + 2 def test(): tmp = add2numbers() return tmp for i in range(5): add2numbers() test(). In the code above, how many times is the line "a = 1 + 2" executed? A. 1 B. O C. 5 D.2 E. 10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!