You will turn an output column into a logic expression by the method of the lesson: one AND term for each row with X = 1, joined by OR.
Your tasks.
term, return the AND term for one row. An input that is 1 is written as its name, and an input that is 0 as (NOT name). Join the parts with " AND ".ones_rows to the rows of rows where column has a 1, in order.expression to the terms of those rows, each in brackets, joined with " OR ".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…