Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 4

15 bytes added, 10:21, 16 June 2017
PART 4 - List Comprehension
def shared_values(dict1, dict2):
# Place code here - refer to function specifics in section below
 
 
if __name__ == '__main__':
york = create_dictionary(list_keys, list_values)
== PART 4 - List Comprehension ==
 :We've have already covered have had an introduction to lists to a degree. Lets move into more We will now explore advanced functions to 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.
:'''Perform the Following Steps'''
13,420
edits