Created
March 13, 2019 00:05
-
-
Save neotam/020ca9e9ba5f21ecb83f567fd8caff6c to your computer and use it in GitHub Desktop.
This file contains 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 printArgsByKind(a, b, c, default=None, intype=int, *more, operation, print_result=False, return_type, ignore_exceptions=True, **kwargs): | |
print("Regular Positional Arguments a: {}, b: {}, c: {}".format(a, b, c)) | |
print("Default Arguments default: {}, intype: {}".format(default, intype) ) | |
print("Variable length positional arguments(tuple) more: {}".format(more)) | |
print("Non-Default Keyword-Only Arguments operation: {}, return_type: {}".format(operation, return_type)) | |
print("Default Keyword-Only Arguments print_result: {}, ignore_exception: {}".format(print_result, ignore_exceptions)) | |
print("Variable length keyword arguments kwargs: {}".format(kwargs)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment