Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 3

117 bytes added, 08:12, 3 June 2017
PART 1 - Navigating Items in Lists
'''Practice Using Functions and Using the List Index'''
 
:'''Perform the Following Instructions'''
 :#Create the a Python script called: '''~/ops435/lab3/lab3e.py''' script. <br>The purpose of this script is to have a number of functions that output a different part data storage in various elements of the a list. Each function will return either a single item from the list OR will create a new list and return the entire new list. :#The template function names and boiler plate the special if statement:<source>
!/usr/bin/env python3
# Put Create the list herebelow this comment:
# 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"
print(give_list())
print(give_first_item())
:::6. Before proceeding, make certain that you identify any and all errors in lab3e.py. When the checking script tells you everything is OK before proceeding to the next step.
::Make notes for all of your observations in your lab log book, and proceed to Part 2.
== PART 2 - Manipulating Items in Lists ==
13,420
edits