Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 3

23 bytes added, 18:34, 14 August 2017
PART 2 - Manipulating Items in Lists
== PART 3 - Iterating Over Lists ==
:This last section demonstrates an extremely useful for lists: the ability to quickly '''loop through every value in the list'''. '''For loops''' have a set number of times they loop. The '''for''' loop (a "determinant" loop) will execute all indented code for each item (element) in the list. Using loops with list allow for efficient processing of stored data.
:'''Perform the Following Steps'''