Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 3

8 bytes removed, 08:48, 3 June 2017
PART 1 - Navigating Items in Lists
def give_first_and_last_item():
# Does not accept any arguments
# Returns the a list that includes the first and last items in the list
def give_second_and_third_item():
# Does not accept any arguments
# Returns the a list that includes the second and third items in the list
if __name__ == '__main__': # This section also referred to as a "boiler plate"
13,420
edits