Question: Write program to generate a list [1,2,3,5,8,13,...] until the latest value exceeds 100.Starting from the third number, each number is the sum of its previous
- Write program to generate a list [1,2,3,5,8,13,...] until the latest value exceeds 100.Starting from the third number, each number is the sum of its previous two values. For example, 3=1+2, 5=2+3, 8=3+5......Please complete the program shown in Figure 3 by filling in the blanks. You are also free to write different program from scratch as long as it works.
figure 3:
Initial=[1,2]
While initial[-1]+initial[-2]<100:
Initial.append(____)
Print(initial)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
