You will count arrangements and numbers by listing all of them with a condition, and compare with the rules of the lesson.
Your tasks.
together to the number of ways to seat the six people "ABCDEF" in a row so that "A" and "B" are next to each other. List every row and keep those where the seats of A and B differ by .even_numbers to the number of four-digit numbers made from the digits to , with no digit repeated, no leading zero and an even last digit.rule to the answer to task 1 from the rule: . Use math.factorial.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…