Skip to content

Instantly share code, notes, and snippets.

@ekam230
Created July 11, 2020 01:35
Show Gist options
  • Save ekam230/fa56db24c1a6ce4312a428730f532be9 to your computer and use it in GitHub Desktop.
Save ekam230/fa56db24c1a6ce4312a428730f532be9 to your computer and use it in GitHub Desktop.
How use args kwarg in function Python
def version3(a, b , *args, **kwrags): print(a) print(b) # new function. if args: for c in args: print(c) if kwrags: for key, value in zip(kwrags.keys(), kwrags.values()): print(key,':', value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment