Home / MCQ Bank / Computer
Computer Lists In Python

What will be the output of the following Python code? def f(i, values = []): values.append(i) return values f(1) f(2) v = f(3) print(v)

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • [1, 2, 3]

Related Computer Questions

In the Field List of a table, the primary key appears _______________. Which of the following is equivalent to random.randrange(3)? What is the output of the following R code: for (i in 1:5) { if (i %% 2 == 0) { print(i) } } Which of the following font-variant property render text using the same letter case as in the underlying code? Which of the following reads a data.frame and creates text output referring to the Google Visualization API?