The reactivity series decides which metals react with cold water, steam and dilute acid. You will write the rule, build a table of results for eleven metals, and count the metals that give hydrogen with acid. Then the program colours the table.
The idea. Down to calcium, metals react with cold water. Down to iron, they react with steam. Above hydrogen, they give hydrogen with dilute acids.
Your tasks.
reacts, return True or False for a metal and "water", "steam" or "acid".table with one row per metal: [water, steam, acid] as 1 or 0.n_acid, the metals that give hydrogen with dilute acid.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 1 more problem, 1 Python lab and 1 extra course. Everything you have used here stays free, always.