Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

### Task 1 You are given a tuple with numbers. Your job is to finds the sum and average of the given numbers in that

### Task 1 You are given a tuple with numbers. Your job is to finds the sum and average of the given numbers in that tuple.

===================================================================

Example 1:

Given tuple: (1, 18, 15, 12, 10, 25, 15, 18, 15, 18, 18, 20, 3, 34, 3)

Output:

The sum is: 225

The average is: 15.0

===================================================================

Example 2

Given tuple: (25, 18, 15, 12, 10, 25, 15, 10, 25, 5, 8, 8, 25)

Output:

The sum is: 201

The average is: 15.461538461538462

===================================================================

tup1 = (1, 18, 15, 12, 10, 25, 15, 18, 15, 18, 18, 20, 3, 34, 3) #tup2= (25, 18, 15, 12, 10, 25, 15, 10, 25, 5, 8, 8, 25)

### Write your code here ###

### End Code ###

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions