Home »
Python »
Python Pandas MCQs
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])
- [200 300]
- [200 700]
- [200 400]
- [200 400]
Answer: C) [200 400]
Explanation:
When we will run the code, get [200 400] as output.