Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to call nested tuple and nested set or dictionary using variable argument and variable keyword argument methods ?

def arithmetic_mean(first, *values): """ This function calculates the arithmetic mean of a non-empty arbitrary number of numerical values """

return (first + sum(values)) / (1 + len(values))

x= [('a', 232), ('b', 343), ('c', 543), ('d', 23)] y= [[('a', 232), ('b', 343), ('c', 543), ('d', 23)]]

how to pass x and y inside arithmetic_mean. can it be possible through zip method?

how How to call nested tuple and nested set or dictionary using variable argument and variable keyword argument methods ?

def arithmetic_mean(first, *values): """ This function calculates the arithmetic mean of a non-empty arbitrary number of numerical values """

 return (first + sum(values)) / (1 + len(values))

x= [('a', 232), ('b', 343), ('c', 543), ('d', 23)] y= [[('a', 232), ('b', 343), ('c', 543), ('d', 23)]]

23)]]

how to pass x and y inside arithmetic_mean. can it be possible through zip method?

How to call nested tuple and nested set or dictionary using variable argument and variable keyword argument methods ?

.

def arithmetic_mean(first, *values):
        """ This function calculates the arithmetic mean of a non-empty
            arbitrary number of numerical values """

"""
     return (first + sum(values)) / (1 + len(values))

 x= [('a', 232), ('b', 343), ('c', 543), ('d', 23)]
 y= [[('a', 232), ('b', 343), ('c', 543), ('d', 23)]]

how to pass x and y inside arithmetic_mean. can it be possible through zip method?