Title: Theory / Unimportant / CS / Programming / Python / Lib / built-in types
Tags: FromInstruction computer_to_instruction hasNotNewEffectReturnsMeaning some_instruction syntactical_sugar

Instruction: s.clear()
Page: https://docs.python.org/3/library/stdtypes.html#frozenset
Effect: remove every element from the set
Language: Python
Variables: s a mutable sequence/dict

Instruction: s[i]
Language: Python
Chapter: 3
Section: 2
Returns: The i-th element of the sequence s. If i<0, then add the length of the sequence to i

Instruction: s[i:j]
Effect: The sequence of length j-i whose n-th element is s[n+i].
Language: Python
Chapter: 3
Section: 2

Instruction: s[i:j:k]
Effect: The sequence of length (j-i)/k whose n-th element is s[i+nk].
Language: Python
Chapter: 3
Section: 2

Instruction: x not in s
Page: https://docs.python.org/3/library/stdtypes.html#frozenset
Language: Python
Returns: Whether s contains no object equal to x
Variables: s a (frozen)set, list, tuple
x an object

Instruction: s.copy()
Page: https://docs.python.org/3/library/stdtypes.html#frozenset
Effect: A shallow copy of s
Language: Python
Variables: s sequence/set/container