What will be output of following code? Pandas Question 7

18. What will be output of following code?

import numpy as np
array1=np.array([100,200,300,400,500,600,700])
print(array1[1:5:2])
  1. [200 300]
  2. [200 700]
  3. [200 400]
  4. [200 400]

Answer: C) [200 400]

Explanation:

When we will run the code, get [200 400] as output.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.