Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 4

8 bytes added, 14:02, 29 September 2017
PART 4 - List Comprehension
'''SKIP THIS PART'''
<!--
:We have already have had an introduction to lists. We will now explore advanced functions that use and generate lists. This is a very common practice in Python: understanding how to generate, manipulate, and apply functions to items inside a list can be incredibly useful. List comprehension is a way to build new lists from existing list and to do it faster than simply looping over lists.
</source>
:#Using the list comprehensions above our code will be faster and more efficient than using multiple variables and loops.
-->
= INVESTIGATION 2: STRINGS =