Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 4

22 bytes added, 15:02, 29 September 2017
PART 4 - List Comprehension
== 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.