58. X= [10]
def add_list():
x=[30,40]
X.append(50)
print x
add_list()
print x
The above example prints
(A) [30,40,50]
(B) Error in the program
(C) [10] [30,40,50]
(D) [10] [30,40]
Answers
Answered by
0
Answer:
In the first step it is taking an array which consists a number 10
Now in the function named add_list , there is also an array , consisting the numbers 30 and 40 and the append function is calling here which will ad 50 with the array declared inside the function.
Now the function is called and perform the addition and give the output by adding two arrays.
Therefore the answer will be option C
Answered by
0
Answer:
in above questions int should be in single comments
B
error in the program
Similar questions