• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

Can anybody Kindly explain this to me pls

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

pythonpython3
20th May 2019, 10:06 PM
Oluwasegun Are
Oluwasegun Are - avatar
2 Answers
+ 7
Also some examples here https://code.sololearn.com/cXNzv56rgiyL
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

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Somebody knows how to solve the problem finance app. Even my result is like it must be, but still I can't pass it
1 Votes
Whyy.
1 Votes
Java certification
1 Votes
Game dev
0 Votes
Question is about for loops and range
0 Votes
Beginner in coding and game development – where should I start?
0 Votes
I can't understand the bug
0 Votes
I have completed 39 courses and now I can't find any other course without those 39 couses what can I do
0 Votes
Coding to automate word documents for technical specifications
1 Votes
Error with code
0 Votes