BuildTheNet

Opening your workspace

Your learning content and tools are loading.

Learning paths › Automation › Tuples, sets and dictionaries for device records

Tuples, sets and dictionaries for device records

Choosing the container a device record belongs in: a tuple for a fixed group, sets for distinct values and for comparing two collections of addresses, and dictionaries read without risking a KeyError and copied without sharing their nesting — then functions in detail, arguments bound by position or name, a parameter made optional, a value returned rather than printed, any number of positional or named arguments accepted, the LEGB name rule, and what a mutable argument shares. Explanation and checks; three written exercises.

Lessons

More in Automation