python type *args code example
Example 1: python function argument type
def pick(l: list, index: int) -> int:
return l[index]
Example 2: python *args
# concatenate_keys.py
def concatenate(**kwargs):
result = ""
# Iterating over the keys of the Python kwargs dictionary
for arg in kwargs:
result += arg
return result
print(concatenate(a="Real", b="Python", c="Is", d="Great", e="!"))