Question: i need help tracing this problem 2. Consider the function below. 1 def Q2 (L): 2 k = -1000 3 for i in L: 4

i need help tracing this problem i need help tracing this problem 2. Consider the function below. 1

2. Consider the function below. 1 def Q2 (L): 2 k = -1000 3 for i in L: 4 if ick: 5 return i 6 k=i 7 return - 1000 Trace the execution of Q2([3,6,9,5,2,1])

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!