13,420
edits
Changes
→PART 3 - Iterating Over Lists
:::*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)'''<brdd> This <dl>The above function takes a single argument which is a list name itself. This function It will then look at the value of the last existing item in the list, it will then append a new value that is one unit bigger (i.e. '''+1''') than the previous existing list item (element). This function modifies the and modifying that same list without returning any value).</dl></dd>
:::*The script should have a function called '''remove_items_from_list(my_list, items_to_remove)'''
:::*T