python define function input type code example
Example 1: python function argument type
def pick(l: list, index: int) -> int:
return l[index]
Example 2: how to set the type of the arguments functions in pytohn
def showPrompt(symbol :str, container :str) -> None:
while container.lower() != "exit":
container = str(input(symbol))