+ 2

In this code I found with slice what does the 5 stand for?

And why is the result the same when I take out 5 and what does 5 stand for I thought arrays were counted with index at 0? https://code.sololearn.com/WN2D0dv50at6/?ref=app

27th Apr 2017, 2:10 AM
AceDev
2 odpowiedzi
+ 17
Try playing around with it by using different numbers e.g. 2 and 3, 2 and 4 Let me know what you find out
27th Apr 2017, 2:16 AM
Jafca
Jafca - avatar
27th Apr 2017, 2:18 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar