Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WRITE IN PYTHON... NOT MATLAB! Please and Thank you! 3. Write a program that asks the user to input a list of integers of arbitrary

WRITE IN PYTHON... NOT MATLAB! Please and Thank you!image text in transcribed

3. Write a program that asks the user to input a list of integers of arbitrary length. Then, using a "for" loop the program examine each element of the vector. If the element is positive its value is doubled. If the element is negative its value is tripled. The program displays the list that was entered and the modified list. Command Window: Columns 1 through 15 -8 9 6 14 18 -6 7 4 -10 0 -5 14 -1 6 -5 Columns 16 through 19 8 2 10 11 Columns 1 through 15 -24 -2712 28 36 -18 14 8 30 0 -15 28 -3 12 -15 Columns 16 through 19 16 -6 20 22

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_2

Step: 3

blur-text-image_3

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

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions