13,420
edits
Changes
→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 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)