Home / MCQ Bank / Computer
Computer Lists In Python

What will be the output of the following Python code? a=[1,2,3] b=a.append(4) print(a) print(b)

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

Related Computer Questions

What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { try { try { throw 20; } catch (char n) { cout << "Inner Catch\n"; } } catch (int x) { cout << "Outer Catch\n"; } return 0; } What will be the output of the following Python code? A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] A[1] Which of the following selects all elements with a target attribute? The Apache Jenkins server runs the ______ job whenever code is committed to the trunk branch. Which option is used to exit Tally