Question: Help me write a python code. In a list of numbers, e.g. [5, 4, 2, 2, 6], the successive ratios are the fractions formed by
Help me write a python code.
In a list of numbers, e.g. [5, 4, 2, 2, 6], the successive ratios are the fractions formed by dividing each number by its predecessor, e.g. [4/5, 2/4, 2/2, 6/2]. Thus in this example the successive ratios are [0.8, 0.5, 1.0, 3.0]. Write a program that asks the user for a list of numbers and then prints out the successive ratios.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
