Hi,
I need help in understanding the below syntax.
1)How should I pass the 2nd argument? Should i pass it as 24_2 , where 24 is the current sum and 2 is the counter(keeping the count of numbers).
2)(sum, count) = sum_count - If someone can explain this line it will be helpful.
I need help in understanding the below syntax.
1)How should I pass the 2nd argument? Should i pass it as 24_2 , where 24 is the current sum and 2 is the counter(keeping the count of numbers).
2)(sum, count) = sum_count - If someone can explain this line it will be helpful.
def add_input(self, sum_count, input): (sum, count) = sum_count return sum + input, count + 1