Creating a function to calculate the average of a given set of numbers using Tuple-based arguments. | SoloLearn: Learn to code for FREE!

+1

Creating a function to calculate the average of a given set of numbers using Tuple-based arguments.

https://www.sololearn.com/post/279699/?ref=app All the details should be in this post. Really need help on this.

3/31/2020 2:36:48 AM

Ogbuagu Zikora

2 Answers

New Answer

+2

Don't *vals at parameter, it will unpack the tuple elements. return the value, don't print in function. Handle edge case (empty tuple). https://code.sololearn.com/cNCvu9G2cuX4/?ref=app

0

Thanks a lot for this