Question: In python Some tasks are best handled by definite iteration (a for loop), but indefinite iteration (a while loop) is better for others. For each
In python

Some tasks are best handled by "definite iteration" (a for loop), but "indefinite iteration" (a while loop) is better for others. For each task below specify which type of iteration is best Write "for" or while in each case: Summing the first n values in a list. Summing the values in a list up to, but not including the first value that is less than 0 Printing all of the values in a list in order. Finding the average of values entered by a user until the user enters the string "quit". Finding the value of n at which the ratio, fibonacci (n)/fibonacci (n-1), is within 1.0e-10 of the golden ratio. [Remember Labo3.]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
