QuestionHi Tutor,I have an assignment for my Python Data Science course that is asking to implement a function. Below are the instructions. Can you please help? M Inbox (2) – marie.nino X SampleJupyter Session X Dashboard x UIntegration of Code, RX &… Show more… Show moreStep 1: Load the code in WheatChessboard.py in the cell below using the %load magic function. After loading the code, execute the cell via Shift+Enter. You’ll see that the variable wheat contains a list of the number of grains on each square of the chessboard, since it starts with one initial grain, which doubles (compounds at a rate of 100% per square, or 1), and continues doubling for 63 more squares. The variable total_wheat represents the total amount of wheat on the board, found by summing the list. M Inbox (2) – marie.nino X SampleJupyter Session X Dashboard x UIntegration of Code, RX &… Show more… Show moreStep 2: The Matplotlib pyplot module has already been loaded as plt in the first cell of this notebook. In the code cell below, using the plt.plot function, plot the list that contains the number of grains on each square. Using the plt.xlabel and plt.ylabel functions, label the x-axis as “square on chessboard” and label the y-axis as “number of grains on square”. Both the plt.xlabel and plt.ylabel functions take a string argument and use that for the associated axis label.In the resulting plot, note that the x-axis corresponds to the square number on the chessboard (from 0 to 63) and the y-axis corresponds to the number of grains on each square. M Inbox (2) – marie.nino X SampleJupyter Session X Dashboard xUIntegration of Code, RX … Show more… Show moreStep 3: This plot is not super-informative because the number of grains grows so quickly over the last few squares of the chessboard. (This is not unrelated to the “Second half of the chessboard” issue discussed on the Wikipedia page.) Replot the wheat data in the cell below, but do so on a logarithmic scale. This can be done by calling plt.semilogy() after you make the same plot as above, to make the y-axis logarithmic, leaving the x-axis linear. A plot like this, with one axis linear and one axis logarithmic, is called a “semilog plot”. There is a function named plt.semilogy for making the y-axis logarithmic, and one named plt.semilogx for making the x-axis logarithmic. If you wanted to make both axes logarithmic (sometimes referred to as a “log-log plot”), you could call the function plt.loglog. (Alternatively, instead of using the plotting functions to represent logarithmic data, you could compute directly the logarithm of the wheat data and plot it on a linear scale, by transforming it using an appropriate function in numpy np, e.g., np.log2 or np.log10.) M Inbox (2) – marie.nino X SampleJupyter Session X Dashboard xUIntegration of Code, RX … Show more… Show moreA little bit of mathFrom the plot above, we see that the logarithm of the number of wheat grains on each square, plotted against the index of a square on the board, forms a straight line. Let be the number of wheat grains on each square, and be the square number. We know that =2 for each square , so we can take the logarithm of both sides of that equation to see that: log( )= *log(2)Therefore, the logarithm of the number of wheat grains on each square is proportional to . The growth of wheat on the chessboard is an exponential process: the amount on the next square is equal to the amount on the current square multiplied by a constant factor (in this case, a constant factor of 2).The word “exponential” is getting thrown around a lot these days in the media and on the web, often intending to suggest that something is “big” or “growing fast”. “Exponential” has a specific mathematical meaning, and you can use your data science skills to debunk claims that something is growing exponentially, when it in fact is not. (More on this below.)Step 4: Reference 1 in the Wheat and Chessboard Wikipedia page lists an article entitled “A Penny Doubled Every Day for 30 Days = $10.7M”. It turns out that $10.7M is an approximate total. Using your compound_by_period function, compute exactly how much money you would have if you started with a penny ($0.01) and doubled it every day for 30 days. Assign this total after 30 days to a variable named total_after_30.Note: this is a little bit different than the wheat and chessboard problem, because there the amount of wheat being placed on a square was doubled every day, but the total amount of wheat on the board is the cumulative sum over all squares up to the current one. The penny-doubled-every-day problem is just a more conventional problem in compound interest, where the balance gets rolled over from day-to-day.Graded CellThis cell is worth 10% of the grade for this assignment. M Inbox (2) – marie.nino X SampleJupyter Session X Dashboard XUIntegration of Code, RX … Show more… Show more M Inbox (2) – marie.nino X SampleJupyter Session X Dashboard XUIntegration of Code, RX … Show more… Show more M Inbox (2) – marie.nino X SampleJupyter Session X Dashboard x UIntegration of Code, RX &… Show more… Show moreStep 7: Now that you’ve computed ratios, plot the values of the list. If the data in growth were growing exponentially, ratios should be approximately constant, i.e., all of its values should be equal to one another. M Inbox (2) – marie.nino X SampleJupyter Session X Dashboard XUIntegration of Code, RX … Show more… Show more M Inbox (2) – marie.nino X SampleJupyter Session X Dashboard x UIntegration of Code, RX &… Show more… Show moreThanks,MarieComputer ScienceEngineering & TechnologyPython Programming COMPUTER S CAC103

# solved : QuestionHi Tutor,I have an assignment for my Python Data Sc

## How it works

- Paste your instructions in the instructions box. You can also attach an instructions file
- Select the writer category, deadline, education level and review the instructionsÂ
- Make a payment for the order to be assigned to a writer
- Â Download the paper after the writer uploads itÂ

## Will the writer plagiarize my essay?

You will get a plagiarism-free paper and you can get an originality report upon request.

## Is this service safe?

All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades

LET THE PROFESSIONALS WRITE YOUR PAPER!