Question: Task Standard input consists of two integers, one per line: the first is an initial rabbit population, and the second is a number of years.

Task
Standard input consists of two integers, one per line: the first is an initial rabbit population, and the second is a number of years.
Write a Python script named rabbits-everywhere.py which outputs the final rabbit population after the indicated number of years.
Example standard input
100
3
Example standard output
800
Explanation
Initially there are
100
rabbits.
After
3
years there are
800
rabbits.

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!