In this document you will be introduced about *args and **kwargs

  • *args and *kwargs are arguments of a function
  • Name of variable is up to you, just star is required.
  • Must stand at the end
*args
  • When we use the *args at internal of a function please type args only. We do not need * any more.
  • *args is a tuple.
**kwargs
  • When we use the *kwargs at internal of a function please type kwargs only. We do not need * any more.
  • **args is a dictionary.