Answered step by step
Verified Expert Solution
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!
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 22Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started