Changes

Jump to: navigation, search

OPS435 Python Lab 3

28 bytes added, 11:12, 3 June 2017
PART 3 - Iterating Over Lists
print(item)
</source>
:#Now instead Instead of running re-calling functions over and over, from our previous sections, we can put use them in a loop. The next sequence When combined with using lists, this is a very efficient method of processing large volumes of code will apply a function to every item in data.<br><br>:#Issue the list.following:<source>
list_of_numbers = [ 1, 5, 2, 6, 8, 5, 10, 2 ]
def square(num):
13,420
edits

Navigation menu