Question: JYTHON PLS PROBLEM 3: Too Much Rice Function Name: rice() Parameters: - rice - an int representing the number of grains of rice you start

JYTHON PLS
JYTHON PLS PROBLEM 3: Too Much Rice Function Name: rice() Parameters: -

PROBLEM 3: Too Much Rice Function Name: rice() Parameters: - rice - an int representing the number of grains of rice you start with - day - an int represent the number of days Return Value: None Description: You are a rice farmer and grow rice. Every day, the amount of rice you have grows exponentially. Calculate how much rice you have after a given number of days. You can NOT use the ** operator in this function. Doing so will result in full loss of credit for the problem. Instead, you must use a while loop! Test Cases: rice (2,1) You have 4 grains of rice. rice (5,2) You have 125 grains of rice. rice (3,3) You have 81 grains of rice

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!