The pH of eight everyday liquids is listed. You will write a function that says whether each is acidic, neutral or basic, colour the bars of a chart by it, and find the most acidic and the most basic liquid.
The idea. Below pH is acidic, is neutral and above is basic.
Your tasks.
kind, return "acidic", "neutral" or "basic" for a pH.colours with "red" for acidic, "green" for neutral and "blue" for basic, one for each liquid.most_acidic and most_basic, the names of the liquids at the two ends.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 7 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.