Skip to content

Instantly share code, notes, and snippets.

@rahulkp220
Created April 27, 2016 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulkp220/5462b3e3ba21d7987e071cf6f3beb8f9 to your computer and use it in GitHub Desktop.
Save rahulkp220/5462b3e3ba21d7987e071cf6f3beb8f9 to your computer and use it in GitHub Desktop.
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