Dobereiner's rule says that the middle mass of a triad is close to the average of the other two. You will write the average, a test that allows , and list the groups of three that pass.
The idea. A triad passes if .
Your tasks.
average, return the average of the first and last masses.is_triad, return True if the middle mass is within of that average.triads with the names in candidates that pass.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 3 more problems, 1 Python lab and 1 extra course. Everything you have used here stays free, always.