Skip to content

Instantly share code, notes, and snippets.

@chicagowebmanagement
Created March 17, 2019 20:32
Show Gist options
  • Save chicagowebmanagement/a897c4b23bffc7d18377da4bb6034ca6 to your computer and use it in GitHub Desktop.
Save chicagowebmanagement/a897c4b23bffc7d18377da4bb6034ca6 to your computer and use it in GitHub Desktop.
testing required and optional parameters.
"""
Write a function that takes three required parameters and two optional parameters.
"""
def tales(x, y, z, a=2, b=3):
total = (x+y+z+a+b)
print(total)
tales(4,6,0)
tales(2,5,12,67)
tales(35,67,87,-10,-3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment