| Code | Points | Description | 
|---|---|---|
| Z1 | 2 | Submission is zip containing lists.py | 
| Z2 | 2 | Zip is named after uni, unzips to folder with uni-hw3 | 
| Z3 | 2 | lists.py is normal python file | 
Each one all-or-nothing
All test cases are all-or-nothing
| Code | Points | Description | 
|---|---|---|
| A1 | 2 | Style | 
| A2 | 2 | Effort | 
| A3 | 2 | Test case 1 | 
| A4 | 2 | Test case 2 | 
| A5 | 2 | Test case 3 | 
| A6 | 2 | Test case 4 | 
assert lists_a([]) == []assert lists_a([1, 2, 3, 4, 5]) == [1, 0, 3, 0, 5]assert lists_a(list(range(1, 10, 2))) == [1, 3, 5, 7, 9]assert lists_a(list(range(0, 10, 2))) == [0, 0, 0, 0, 0]All test cases are all-or-nothing
| Code | Points | Description | 
|---|---|---|
| B1 | 2 | Style | 
| B2 | 2 | Effort | 
| B3 | 2 | Test case 1 | 
| B4 | 2 | Test case 2 | 
| B5 | 2 | Test case 3 | 
| B6 | 2 | Test case 4 | 
assert lists_b([]) == []assert lists_b([1]) == [1]assert lists_b([1, 2]) == [2, 1]assert lists_b([1, 2, 3, 4, 5]) == [5, 1, 2, 3, 4]All test cases are all-or-nothing
| Code | Points | Description | 
|---|---|---|
| C1 | 2 | Style | 
| C2 | 2 | Effort | 
| C3 | 2 | Test case 1 | 
| C4 | 2 | Test case 2 | 
| C5 | 2 | Test case 3 | 
| C6 | 2 | Test case 4 | 
assert lists_c([]) == []assert lists_c([1]) == []assert lists_c([1, 2]) == []assert lists_c([1, 2, 3, 4]) == [1, 4]All test cases are all-or-nothing
| Code | Points | Description | 
|---|---|---|
| D1 | 2 | Style | 
| D2 | 2 | Effort | 
| D3 | 2 | Test case 1 | 
| D4 | 2 | Test case 2 | 
| D5 | 2 | Test case 3 | 
| D6 | 2 | Test case 4 | 
assert lists_d([]) == []assert lists_d([1, 2]) == [1, 2]assert lists_d([1, 2, 1]) == [1, 1, 1]assert lists_d([1, 2, 1, 2, 1]) == [1, 1, 2, 1, 1]All test cases are all-or-nothing
| Code | Points | Description | 
|---|---|---|
| E1 | 2 | Style | 
| E2 | 2 | Effort | 
| E3 | 2 | Test case 1 | 
| E4 | 2 | Test case 2 | 
| E5 | 2 | Test case 3 | 
| E6 | 2 | Test case 4 | 
assert lists_e([1]) == -1assert lists_e([1, 2]) == -1assert lists_e([1, 2, 1]) == -1assert lists_e([2, 2, 1]) == 1All test cases are all-or-nothing
| Code | Points | Description | 
|---|---|---|
| F1 | 2 | Style | 
| F2 | 2 | Effort | 
| F3 | 2 | Test case 1 | 
| F4 | 2 | Test case 2 | 
| F5 | 2 | Test case 3 | 
| F6 | 2 | Test case 4 | 
assert lists_f([]) == []assert lists_f([1, 2]) == [1, 1]assert lists_f([1, 2, 1]) == [2, 1, 2]assert lists_f([1, 1, 1]) == [3, 3, 3]All test cases are all-or-nothing
| Code | Points | Description | 
|---|---|---|
| G1 | 2 | Style | 
| G2 | 2 | Effort | 
| G3 | 2 | Test case 1 | 
| G4 | 2 | Test case 2 | 
| G5 | 2 | Test case 3 | 
| G6 | 2 | Test case 4 | 
assert lists_g("") == ([], [], [], [])assert lists_g("a") == (["a"], [], [], [])assert lists_g("aA1!aA1!") == (["a"], ["A"], ["1"], ["!"])assert lists_g("1Ab!aB.2") == (["b", "a"], ["A", "B"], ["1", "2"], ["!", "."])