Created
April 27, 2016 21:03
-
-
Save rahulkp220/5462b3e3ba21d7987e071cf6f3beb8f9 to your computer and use it in GitHub Desktop.
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 example_function(arg1,arg2,arg3,*args): | |
print “arg1 is {0}”.format(arg1) | |
print “arg2 is {0}”.format(arg2) | |
print “arg3 is {0}”.format(arg3) | |
print “*arg is {0}”.format(args) | |
>>> example_function(1,2,3,4,5,6,7,8,9,10) | |
arg1 is 1 | |
arg2 is 2 | |
arg3 is 3 | |
*arg is (4, 5, 6, 7, 8, 9, 10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment