Mark Yourself Question
A student plots a bacterial growth curve:
import matplotlib.pyplot as plt time_h = [0, 2, 4, 6, 8] od600 = [0.05, 0.11, 0.24, 0.50, 0.95] plt.plot(od600, time_h, "o-") plt.xlabel("Time (h)") plt.ylabel("OD600") plt.show()
The horizontal axis labelled "Time (h)" runs only from about 0 to 1, and the vertical axis labelled "OD600" reaches 8. Explain the bug, write the corrected plotting line, and give the (x, y) coordinates of the right-most point after the fix.
Unlock full course notes by signing up
Python and Jupyter Notebooks: difficulty 3
A notebook stores gene lengths in base pairs:
lengths = {"geneA": 1520, "geneB": 870, "geneC": 2310, "geneD": 640}
Give the value (and, for part 2, the type) that each expression produces: