Question

Using python, Write a function that takes 3 inputs, x, y, and z, but make y...

Using python, Write a function that takes 3 inputs, x, y, and z, but make y and z default parameters, with initial values of 5 and 12. Have the function return the sum of x, y, and z

0 0
Add a comment Improve this question Transcribed image text
Answer #1
def sum_numbers(x, y=5, z=12):
    return x + y + z


# Testing the function here. ignore/remove the code below if not required
print(sum_numbers(10))
print(sum_numbers(10, 15))
print(sum_numbers(10, 100))

Add a comment
Know the answer?
Add Answer to:
Using python, Write a function that takes 3 inputs, x, y, and z, but make y...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT