13,420
edits
Changes
→PART 1 - Navigating Items in Lists
list3[-1] # Last item in list3
</source>
:#Instead of just getting Issue the first and last, lists can give following to provide ranges of items. in a list: <source>
list1[0:5] # Starting with index 0 and stopping before index 5
list2[2:4] # Starting with index 2 and stopping before index 4