Skip to content

Instantly share code, notes, and snippets.

@MBurvill
Created August 9, 2018 11:03
Show Gist options
  • Save MBurvill/5e8fd855b6a8b5b7c77b2a3b94d88ccf to your computer and use it in GitHub Desktop.
Save MBurvill/5e8fd855b6a8b5b7c77b2a3b94d88ccf to your computer and use it in GitHub Desktop.
args *args
def adder(x,y,z):
print("sum:",x+y+z)
nums = (5,10,15)
adder(*nums)
#better than
adder(nums[0],nums[1],nums[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment