Question: 2 . Write a python program that creates the tuple tt = ( 5 5 , 7 7 , 5 4 , 6 , 7
Write a python program that creates the tuple tt and then
Access the number and save it under answer Display the answer on the console.
Add all the numbers inside the tt Hint: From the NumPy library, you can use npsum and nparray.
Find the average of all the numbers in tt and display the result.
Create a new tuple with the first elements of tt and display the result.
Create a new tuple with the last elements of tt and display the result.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
