[Solved] Why is the output different? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

[Solved] Why is the output different?

The Numpy array when sliced differently, produces a different output (orientation wise) Why does this happen? https://code.sololearn.com/cqmpwg6t9N93/?ref=app

12th Jan 2020, 6:21 PM
Infinity
Infinity - avatar
2 Answers
+ 6
replace 2 with 1 and it becomes clear that first one is a range and second one a particular element. analog to "infinity" [2:] and infinity" [2]
12th Jan 2020, 6:54 PM
Oma Falk
Oma Falk - avatar
0
모르겠어요.ㅋㅋㅋ
14th Jan 2020, 3:56 PM
리 싱