Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 . Write a python program that creates the tuple tt = ( 5 5 , 7 7 , 5 4 , 6 , 7

2. Write a python program that creates the tuple tt =(55,77,54,6,76,101,1,2,8679,123,99) and then
Access the number 2 and save it under answer_4. Display the answer_4 on the console.
Add all the numbers inside the tt. Hint: From the NumPy library, you can use np.sum and np.array.
Find the average of all the numbers in tt and display the result.
Create a new tuple with the first 5 elements of tt and display the result.
Create a new tuple with the last 5 elements of tt and display the result.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions