Home / MCQ Bank / Computer
Computer Lists In Python Difficulty: Medium

What will be the output of the following Python code? A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] [A[i][i] for i in range(len(A))]

Select the correct option to test your answer:

More Computer Questions

Pick out the compound assignment statement. What is the value of jump taken for maximum efficiency while implementing jump search? What does the following property defined in the array class defines in C#? public bool IsReadOnly { get; } Which is the correct term of the given relation, lcm (a, b) * gcd (a, b) =? Which principle of OOP allows a class to provide a specific implementation of a method that is already defined in its parent class?