Question: Python 3.6 11. (5 pts) A sequence of numbers is given by 3, 10,30,300, 9000, 2700000,... where the first two elements are 3 and 10,

Python 3.6  Python 3.6 11. (5 pts) A sequence of numbers is given

11. (5 pts) A sequence of numbers is given by 3, 10,30,300, 9000, 2700000,... where the first two elements are 3 and 10, and every element after is the product of the previous two. Write a Python whose input is a positive integer n, and whose output is the nth number in the sequence. For example, ff (2) should have the value 10, and ff (4) should have the value 300

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!