Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 3

18 bytes removed, 07:21, 3 June 2017
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
13,420
edits