Question: JYTHON PLS PROBLEM 3: Too Much Rice Function Name: rice() Parameters: - rice - an int representing the number of grains of rice you start
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
Get step-by-step solutions from verified subject matter experts
