Slide 11
Slide 11 text
Sets & Tuples & Lists
• identifier: Set[type] = value
• identifier: Tuple[type, type] = value
• identifier: Tuple[type, ...] = value
• identifier: List[type] = value
Examples
• pythons: Set[str] = {'cleese', 'idle', 'palin'}
• talk: Tuple[str, str] = ('types', 'pylondinium')
• initials: Tuple[str, ...] = ('o', 'j', 'f')
• talks: List[Tuple[str, str]] = [('types', 'pylondinium')]
Python annotations 7