Question
The following is a list of numbers, copy and past the list into your code. In this assignment you are to calculate and print to
The following is a list of numbers, copy and past the list into your code. In this assignment you are to calculate and print to the screen the increase or decrease (indicate a decrease with a negative number) from one line to the next as you iterate through the list and the percentage of that increase/decrease. The following line could be used to iterate through the list comparing the values at positions i and i +1. for i in range(0, len(numbers) -1): numbers = [ 151868, 153982, 156393, 158956, 161884, 165069, 168088, 171187, 174149, 177135, 179979, 182992, 185771, 188483, 191141, 193526, 195576, 197457, 199399, 201385, 203984, 206827, 209284, 211357, 213342, 215465, 217563, 219760, 222095, 224567, 227225, 229466, 231664, 233792, 235825, 237924, 240133, 242289, 244499, 246819, 249623]
code in python
Step 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