After using both for loop version or iterator version still getting error on unittests and cannot pass it.
(assignment) jovyan@b0df6ebc0dd4:~/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]
Modified list: [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 30]
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: 46
Got: 42
any suggestions