I have defined the function as followed:
def pick(l: list, index: int) -> int:
return l[index]
It means then I must pass the integer parameter as the second argument. but when I use,
print(pick(['a', 'b', 'c'],True)) #returns me the 'b'.
The reason why I've moved from PHP to PYTHON is that PHP was a headache for me. (I mean not strongly typed variables, and also work with utf-8 strings).
How to restrict the passing boolean argument as an integer?