What will be the output of the following Python code? import numpy as np B =…

PYQ KVS TGT/PGT 2023

What will be the output of the following Python code?

import numpy as np
B = np.array([20, 50, 80, 30])
print(B, B.size, B.shape)
  1. A.

    (20, 50, 80, 30) 4, (4,)

  2. B.

    [20 50 80 30] 4 (4,)

  3. C.

    (20, 50, 80, 30) (4,) 4

  4. D.

    [20, 50, 80, 30] (4,) 4

Attempted by 1033 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…