Lecture

Python Modules and Functions

Description

This lecture covers the organization of Python libraries by module, the explicit importation of items, and the renaming of modules. It also explains the declaration of modules, scoping, and the use of functions and lambdas. Additionally, it delves into nested declarations, accessing parent contexts, and the global keyword for variable assignment. The lecture further explores functions as parameters, the creation of functions that return functions, and the manipulation of functions. It concludes with a practical example of displaying the most frequent words in a list and the flexibility of Python in handling functions as values.

About this result
This page is automatically generated and may contain information that is not correct, complete, up-to-date, or relevant to your search query. The same applies to every other page on this website. Please make sure to verify the information with EPFL's official sources.