0

import numpy as np a=np.array([10,20,30,40,50,60,70,80,90]) print(a,[-1:-3])

Need answers

27th May 2020, 9:16 AM
Yogesh Agarwal
Yogesh Agarwal - avatar
5 Answers
+ 1
T B G Gaming You're Welcome 👍
27th May 2020, 9:30 AM
Namit Jain
Namit Jain - avatar
+ 3
Dont put comma after 'a' in the second line... Answer will be: [] a[-3:-1] will give [70 80]
27th May 2020, 9:17 AM
Namit Jain
Namit Jain - avatar
+ 2
If you put a[-1:-3:-1] then you will get [90 80]
27th May 2020, 9:25 AM
Namit Jain
Namit Jain - avatar
+ 1
How bro how answer is empty [ ]
27th May 2020, 9:24 AM
Yogesh Agarwal
Yogesh Agarwal - avatar
+ 1
Thanks bro now I'll got it
27th May 2020, 9:28 AM
Yogesh Agarwal
Yogesh Agarwal - avatar