Created
July 11, 2020 01:35
-
-
Save ekam230/fa56db24c1a6ce4312a428730f532be9 to your computer and use it in GitHub Desktop.
How use args kwarg in function Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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