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