Question: Given the following Python functions: #function 1 : def reassign ( L ) : L = L + [ 1 0 0 ] #function 2

Given the following Python functions:
#function1:
def reassign(L):
L = L +[100]
#function2
def append(L):
L.append(100)
which of the following correct?
Question 10 options:
L is a call-by-value parameter in function1 and a call-by-reference parameter in function2
L is a call-by-reference parameter in function1 and a call-by-value parameter in function2
L is a call-by-value parameter in both function 1 and function2
L is a call-by-reference parameter in both function 1 and function2

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 Programming Questions!