The densities of eight metals are listed. You will write a test for floating on water, list the metals that float, and find the densest metal. Then the program draws the densities with a line for water.
The idea. Water has a density of . Anything less dense floats on it.
Your tasks.
floats, return True if the density is less than that of water.floaters with the names of the metals that float.densest, the name of the metal with the greatest density.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…
With Standard, you also open 5 more problems and 2 Python labs. Everything you have used here stays free, always.