Can anybody Kindly explain this to me pls | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can anybody Kindly explain this to me pls

a [ -2::1] what is the meaning of (::)

20th May 2019, 10:06 PM
Oluwasegun Are
Oluwasegun Are - avatar
2 Answers
+ 7
20th May 2019, 10:27 PM
David Ashton
David Ashton - avatar
+ 3
This is the operation for list slicing. It is well explained here: https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2453/?ref=app
20th May 2019, 10:08 PM
Eduardo Petry
Eduardo Petry - avatar