Changes

Jump to: navigation, search

OPS435 Python Lab 3

4 bytes added, 11:25, 3 June 2017
PART 3 - Iterating Over Lists
'''Practice Functions, Lists, Loops'''
 
:'''Perform the Following Instructions:'''
 
:#Create the '''~/ops435/lab3/lab3f.py''' script. The purpose of this script is to use functions to modify items inside a list. <source>
# Place my_list herebelow this comment (before the function definitions)  
def add_item_to_list(my_list):
</source>
:::*The script should have a '''Shebang line'''
:::*The list '''my_list''' should have the values: '''1, 2, 3, 4, 5'''
:::*The script should have a function called add_item_to_list(my_list)
13,420
edits

Navigation menu