It is about the first part of the assignment that I am having trouble with:

(assignment) jovyan@5103d145da83:~/work/assignment_part_1$ python unittests.py

Initial list: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]

Indices to remove: {0, 2, 4, 5, 6, 8, 11, 13, 14, 15, 16, 18, 19, 20, 21, 22, 24, 27, 28}

List after removal: [2, 4, 8, 10, 11, 13, 18, 24, 26, 27, 30]

magic_list[0] after division: 2

magic_list[1] after division: 2

magic_list[2] after division: 1

magic_list[3] after division: 1

magic_list[4] after division: 1

magic_list[5] after division: 1

magic_list[6] after division: 1

magic_list[7] after division: 1

magic_list[8] after division: 1

magic_list[9] after division: 1

List after integer division: [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 30]

Adding 2, current summation: 2

Adding 2, current summation: 4

Adding 1, current summation: 5

Adding 1, current summation: 6

Adding 1, current summation: 7

Adding 1, current summation: 8

Adding 1, current summation: 9

Adding 1, current summation: 10

Adding 1, current summation: 11

Adding 1, current summation: 12

Adding 30, current summation: 42

Magic summation is equal to: 42.

Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 30 and seed = 10.

Expected: 50

Got: 42

I see no problem and the answer I believe should be 42. Is there something I am misunderstanding here?