Created
March 17, 2019 20:32
-
-
Save chicagowebmanagement/a897c4b23bffc7d18377da4bb6034ca6 to your computer and use it in GitHub Desktop.
testing required and optional parameters.
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
""" | |
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