python define method outside of class code example Example: declare type of object argument python def pick(l: list, index: int) -> int: return l[index]