# Evaluator Report

Sort by:
Student:
Roll:
File:
Dark

### Ashish Bhardwaj

Roll: 2333311
File: 2333311_Ashish_Bhardwaj.ipynb
Total: 7.0/47 (14.89%)
Best 10: 7.0
Scaled: 2.19

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_length([1]) == 1 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_length([5, 10, 15, 20]) == 4 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'n' is not defined
assert total_sum([10]) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'n' is not defined
assert total_sum([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'n' is not defined

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 2, in count_even NameError: name 'check' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 2, in count_even NameError: name 'check' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 2, in count_even NameError: name 'check' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Meenaakshi R Nair

Roll: 2333331
File: 2333331 Meenaakshi R Nair.ipynb
Total: 12.0/47 (25.53%)
Best 10: 12.0
Scaled: 3.75

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_length' is not defined
assert find_length([1]) == 1 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_length' is not defined
assert find_length([5, 10, 15, 20]) == 4 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_length' is not defined

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'n' is not defined
assert total_sum([10]) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'n' is not defined
assert total_sum([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'n' is not defined

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in filter_odd NameError: name 'n' is not defined
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in filter_odd NameError: name 'n' is not defined
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in filter_odd NameError: name 'n' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Vanditha Patwary

Roll: 2333356
File: 2333356_PYTHON.ipynb
Total: 28.0/47 (59.57%)
Best 10: 28.0
Scaled: 8.75

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### R KISHORE KUMAR

Roll: 2333441
File: 2333441 (1).ipynb
Total: 14.0/47 (29.79%)
Best 10: 14.0
Scaled: 4.38

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all TypeError: 'type' object is not iterable
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all TypeError: 'type' object is not iterable
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all TypeError: 'type' object is not iterable

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Abhijith A Vasudev

Roll: 2333403
File: Abhijith Vasudev_2333403 (1).ipynb
Total: 15.0/47 (31.91%)
Best 10: 15.0
Scaled: 4.69

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'classify_age' is not defined
assert classify_age(15) == 'Teen' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'classify_age' is not defined
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'classify_age' is not defined
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'classify_age' is not defined

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Archa

Roll: 2333416
File: Archa.ipynb
Total: 25.0/47 (53.19%)
Best 10: 25.0
Scaled: 7.81

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_length([1]) == 1 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_length([5, 10, 15, 20]) == 4 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_23>", line 4, in number_exists NameError: name 'element' is not defined
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_23>", line 4, in number_exists NameError: name 'element' is not defined
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_23>", line 4, in number_exists NameError: name 'element' is not defined

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'fibonacci' is not defined
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'fibonacci' is not defined
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'fibonacci' is not defined

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Beryl Jacob Saigi

Roll: 2333312
File: Beryl Jacob(1).ipynb
Total: 19.0/47 (40.43%)
Best 10: 19.0
Scaled: 5.94

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'n' is not defined
assert total_sum([10]) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'n' is not defined
assert total_sum([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'n' is not defined

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all File "<student_cell_19>", line 2, in <listcomp> NameError: name 'n' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all File "<student_cell_19>", line 2, in <listcomp> NameError: name 'n' is not defined
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 2, in find_max TypeError: 'type' object is not iterable
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 2, in find_max TypeError: 'type' object is not iterable
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 2, in find_max TypeError: 'type' object is not iterable

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in filter_odd NameError: name 'n' is not defined
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in filter_odd NameError: name 'n' is not defined
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in filter_odd NameError: name 'n' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Beryl Jacob Saigi

Roll: 2333312
File: Beryl Jacob.ipynb
Total: 19.0/47 (40.43%)
Best 10: 19.0
Scaled: 5.94

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'n' is not defined
assert total_sum([10]) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'n' is not defined
assert total_sum([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'n' is not defined

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all File "<student_cell_19>", line 2, in <listcomp> NameError: name 'n' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all File "<student_cell_19>", line 2, in <listcomp> NameError: name 'n' is not defined
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 2, in find_max TypeError: 'type' object is not iterable
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 2, in find_max TypeError: 'type' object is not iterable
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 2, in find_max TypeError: 'type' object is not iterable

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in filter_odd NameError: name 'n' is not defined
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in filter_odd NameError: name 'n' is not defined
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in filter_odd NameError: name 'n' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Bhoomika Jain

Roll: 2333313
File: Bhoomika Jain 2333313.ipynb
Total: 37.0/47 (78.72%)
Best 10: 31.0
Scaled: 9.69

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | passed | 1.0 |
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Dakshita

Roll: 2333420
File: Dakshita_Bahal.ipynb
Total: 26.0/47 (55.32%)
Best 10: 26.0
Scaled: 8.12

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'i' is not defined
assert total_sum([10]) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'i' is not defined
assert total_sum([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 3, in total_sum NameError: name 'i' is not defined

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'fibonacci' is not defined
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'fibonacci' is not defined
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'fibonacci' is not defined

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Esther Ann Cheriyan

Roll: 2333424
File: Esther_2333424.ipynb
Total: 32.0/47 (68.09%)
Best 10: 31.0
Scaled: 9.69

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### student name

Roll: student roll number
File: Gauri Agarwal_notebook (1).ipynb
Total: 0.0/47 (0.0%)
Best 10: 0.0
Scaled: 0.0

#### Question: _identity_check_

+
Description: Student did not customize name/roll_number.

Assertion | Status | Score | Error
--- | --- | --- | ---
[missing student identity] | failed | 0.0 | Student notebook missing personalized name/roll_number. Please define: name = 'Your Name' roll_number = 'Your Roll Number'

### Heer Domadia

Roll: 2333318
File: Heer Domadia_2333318.ipynb
Total: 28.0/47 (59.57%)
Best 10: 28.0
Scaled: 8.75

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Jaishnavy

Roll: 2333319
File: JAISHNAVY 2333319.ipynb
Total: 32.0/47 (68.09%)
Best 10: 31.0
Scaled: 9.69

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### student name

Roll: student roll number
File: Khushi Tayal 2333430.ipynb
Total: 0.0/47 (0.0%)
Best 10: 0.0
Scaled: 0.0

#### Question: _identity_check_

+
Description: Student did not customize name/roll_number.

Assertion | Status | Score | Error
--- | --- | --- | ---
[missing student identity] | failed | 0.0 | Student notebook missing personalized name/roll_number. Please define: name = 'Your Name' roll_number = 'Your Roll Number'

### Naiya Kakkar

Roll: 2333333
File: Naiya_2333333 (5).ipynb
Total: 14.0/47 (29.79%)
Best 10: 14.0
Scaled: 4.38

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(15) == 'Teen' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 4, in find_max TypeError: 'list' object is not callable
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 4, in find_max TypeError: 'list' object is not callable
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 4, in find_max TypeError: 'list' object is not callable

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_23>", line 2, in number_exists NameError: name 'pa' is not defined
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_23>", line 2, in number_exists NameError: name 'pa' is not defined
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_23>", line 2, in number_exists NameError: name 'pa' is not defined

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 5, in filter_odd NameError: name 'a' is not defined
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 5, in filter_odd NameError: name 'a' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Reet Agarwal

Roll: 2333338
File: Reet_Agarwal_2333338.ipynb
Total: 36.0/47 (76.6%)
Best 10: 31.0
Scaled: 9.69

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Saravana Arjun

Roll: 2333447
File: Saravana arjun.ipynb
Total: 26.0/47 (55.32%)
Best 10: 26.0
Scaled: 8.12

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_23>", line 3, in number_exists NameError: name 'true' is not defined
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_23>", line 3, in number_exists NameError: name 'true' is not defined
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_23>", line 3, in number_exists NameError: name 'true' is not defined

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Shivam

Roll: 2333452
File: Shivam (1).ipynb
Total: 43.0/47 (91.49%)
Best 10: 32.0
Scaled: 10.0

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | passed | 1.0 |
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | passed | 1.0 |

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | passed | 1.0 |
assert is_palindrome([1, 2, 3]) == False | passed | 1.0 |
assert is_palindrome([5]) == True | passed | 1.0 |
assert is_palindrome([]) == True | passed | 1.0 |

### Shreeji Anand

Roll: 233453
File: Shreeji Anand (1).ipynb
Total: 19.0/47 (40.43%)
Best 10: 19.0
Scaled: 5.94

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all NameError: name 'n' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all NameError: name 'n' is not defined
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all NameError: name 'n' is not defined

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Shreeji Anand

Roll: 233453
File: Shreeji Anand (2).ipynb
Total: 19.0/47 (40.43%)
Best 10: 19.0
Scaled: 5.94

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all NameError: name 'n' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all NameError: name 'n' is not defined
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all NameError: name 'n' is not defined

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Aayan Nariyal

Roll: 2333402
File: aayan, 2333402.ipynb
Total: 31.0/47 (65.96%)
Best 10: 29.0
Scaled: 9.06

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_3>", line 5, in is_odd NameError: name 'Talse' is not defined
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(15) == 'Teen' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_27>", line 6, in find_pairs TypeError: list.append() takes exactly one argument (2 given)
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_27>", line 6, in find_pairs TypeError: list.append() takes exactly one argument (2 given)
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_27>", line 6, in find_pairs TypeError: list.append() takes exactly one argument (2 given)

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Ajitesh Solanki

Roll: 2333304
File: ajitesh_solanki (2).ipynb
Total: 36.0/47 (76.6%)
Best 10: 31.0
Scaled: 9.69

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Ajitesh Solanki

Roll: 2333304
File: ajitesh_solanki.ipynb
Total: 36.0/47 (76.6%)
Best 10: 31.0
Scaled: 9.69

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Akshita Dhagat

Roll: 2333305
File: akshita_2333305 (10).ipynb
Total: 7.0/47 (14.89%)
Best 10: 7.0
Scaled: 2.19

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_12>", line 3, in find_length TypeError: 'type' object is not iterable
assert find_length([1]) == 1 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_12>", line 3, in find_length TypeError: 'type' object is not iterable
assert find_length([5, 10, 15, 20]) == 4 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_12>", line 3, in find_length TypeError: 'type' object is not iterable

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert total_sum([10]) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert total_sum([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_26>", line 3, in count_even TypeError: 'type' object is not iterable
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_26>", line 3, in count_even TypeError: 'type' object is not iterable
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_26>", line 3, in count_even TypeError: 'type' object is not iterable

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Alviya

Roll: 2333409
File: alviya.ipynb
Total: 16.0/47 (34.04%)
Best 10: 16.0
Scaled: 5.0

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_length([1]) == 1 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_length([5, 10, 15, 20]) == 4 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all TypeError: 'type' object is not iterable
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all TypeError: 'type' object is not iterable
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all TypeError: 'type' object is not iterable

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Naiya Kakkar

Roll: 2333333
File: naiya_2333333 (5)(1).ipynb
Total: 13.0/47 (27.66%)
Best 10: 13.0
Scaled: 4.06

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(15) == 'Teen' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 4, in find_max TypeError: 'list' object is not callable
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 4, in find_max TypeError: 'list' object is not callable
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 4, in find_max TypeError: 'list' object is not callable

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Ajitesh Solanki

Roll: 2333304
File: student_notebook (1) (1).ipynb
Total: 33.0/47 (70.21%)
Best 10: 31.0
Scaled: 9.69

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_13>", line 3, in get_absolute TypeError: 'int' object is not iterable
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_13>", line 3, in get_absolute TypeError: 'int' object is not iterable
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_13>", line 3, in get_absolute TypeError: 'int' object is not iterable

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Mythri

Roll: 2333438
File: student_notebook (1)(1).ipynb
Total: 23.0/47 (48.94%)
Best 10: 23.0
Scaled: 7.19

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all NameError: name 'numbers' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all NameError: name 'numbers' is not defined
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all NameError: name 'numbers' is not defined

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | passed | 1.0 |
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | passed | 1.0 |
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | passed | 1.0 |

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Abhiram L

Roll: 2333327
File: student_notebook (1)(10).ipynb
Total: 12.0/47 (25.53%)
Best 10: 12.0
Scaled: 3.75

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 4, in count_even NameError: name 'n' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 4, in count_even NameError: name 'n' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 4, in count_even NameError: name 'n' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 6, in find_max NameError: name 'max_value' is not defined
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 6, in find_max NameError: name 'max_value' is not defined
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 6, in find_max NameError: name 'max_value' is not defined

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_23>", line 2, in number_exists TypeError: 'list' object is not callable
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_23>", line 2, in number_exists TypeError: 'list' object is not callable
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_23>", line 2, in number_exists TypeError: 'list' object is not callable

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Sebin Varghese Shibu

Roll: 2333345
File: student_notebook (1)(11).ipynb
Total: 25.0/47 (53.19%)
Best 10: 25.0
Scaled: 7.81

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 4, in count_even NameError: name 'n' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 4, in count_even NameError: name 'n' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 4, in count_even NameError: name 'n' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Saumya

Roll: 2333448
File: student_notebook (1)(2).ipynb
Total: 26.0/47 (55.32%)
Best 10: 26.0
Scaled: 8.12

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all TypeError: can only concatenate list (not "int") to list
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all TypeError: can only concatenate list (not "int") to list
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all TypeError: can only concatenate list (not "int") to list

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in filter_odd TypeError: unsupported operand type(s) for %: 'list' and 'int'
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in filter_odd TypeError: unsupported operand type(s) for %: 'list' and 'int'
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in filter_odd TypeError: unsupported operand type(s) for %: 'list' and 'int'

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | passed | 1.0 |
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | passed | 1.0 |
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | passed | 1.0 |

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Shubham Bhattacharya

Roll: 2333349
File: student_notebook (1)(3).ipynb
Total: 18.0/47 (38.3%)
Best 10: 18.0
Scaled: 5.62

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Khush Sawansukha

Roll: 2333429
File: student_notebook (1)(4).ipynb
Total: 16.0/47 (34.04%)
Best 10: 16.0
Scaled: 5.0

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in square_all NameError: name 'n' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in square_all NameError: name 'n' is not defined
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in square_all NameError: name 'n' is not defined

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_palindrome' is not defined
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_palindrome' is not defined
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_palindrome' is not defined
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_palindrome' is not defined

### Khush Sawansukha

Roll: 2333429
File: student_notebook (1)(5).ipynb
Total: 16.0/47 (34.04%)
Best 10: 16.0
Scaled: 5.0

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in square_all NameError: name 'n' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in square_all NameError: name 'n' is not defined
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in square_all NameError: name 'n' is not defined

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_palindrome' is not defined
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_palindrome' is not defined
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_palindrome' is not defined
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_palindrome' is not defined

### aaryan dubey

Roll: 2333302
File: student_notebook (1)(6).ipynb
Total: 3.0/47 (6.38%)
Best 10: 3.0
Scaled: 0.94

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'classify_age' is not defined
assert classify_age(15) == 'Teen' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'classify_age' is not defined
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'classify_age' is not defined
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'classify_age' is not defined

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_length' is not defined
assert find_length([1]) == 1 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_length' is not defined
assert find_length([5, 10, 15, 20]) == 4 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_length' is not defined

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'total_sum' is not defined
assert total_sum([10]) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'total_sum' is not defined
assert total_sum([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'total_sum' is not defined

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'min_of_two' is not defined
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'min_of_two' is not defined
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'min_of_two' is not defined

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Parth Thakur

Roll: 2333437
File: student_notebook (1)(7).ipynb
Total: 23.0/47 (48.94%)
Best 10: 23.0
Scaled: 7.19

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'classify_age' is not defined
assert classify_age(15) == 'Teen' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'classify_age' is not defined
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'classify_age' is not defined
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'classify_age' is not defined

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | passed | 1.0 |
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | passed | 1.0 |
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Raihan Sadath

Roll: 2333442
File: student_notebook (1)(8).ipynb
Total: 23.0/47 (48.94%)
Best 10: 23.0
Scaled: 7.19

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 3, in count_even NameError: name 'your_list' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 3, in count_even NameError: name 'your_list' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 3, in count_even NameError: name 'your_list' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Sania Thakrar

Roll: 2333343
File: student_notebook (1)(9).ipynb
Total: 29.0/47 (61.7%)
Best 10: 29.0
Scaled: 9.06

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 4, in square_all UnboundLocalError: cannot access local variable 'num' where it is not associated with a value
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 4, in square_all UnboundLocalError: cannot access local variable 'num' where it is not associated with a value
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 4, in square_all UnboundLocalError: cannot access local variable 'num' where it is not associated with a value

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Ankita Bajoria

Roll: 2333412
File: student_notebook (1).ipynb
Total: 23.0/47 (48.94%)
Best 10: 23.0
Scaled: 7.19

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all File "<student_cell_19>", line 2, in <listcomp> NameError: name 'n' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all File "<student_cell_19>", line 2, in <listcomp> NameError: name 'n' is not defined
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 2, in find_max TypeError: 'type' object is not iterable
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 2, in find_max TypeError: 'type' object is not iterable
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 2, in find_max TypeError: 'type' object is not iterable

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Rajdeep Dutta

Roll: 2333337
File: student_notebook (2) (1)(1).ipynb
Total: 11.0/47 (23.4%)
Best 10: 11.0
Scaled: 3.44

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(15) == 'Teen' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'square_all' is not defined

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Reet Agarwal

Roll: 2333338
File: student_notebook (2) (1)(2).ipynb
Total: 33.0/47 (70.21%)
Best 10: 31.0
Scaled: 9.69

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Eesha Bamangaya

Roll: 2333423
File: student_notebook (2) (1).ipynb
Total: 16.0/47 (34.04%)
Best 10: 16.0
Scaled: 5.0

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 2, in count_even NameError: name 'n' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 2, in count_even NameError: name 'n' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 2, in count_even NameError: name 'n' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all NameError: name 'n' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all NameError: name 'n' is not defined
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 3, in square_all NameError: name 'n' is not defined

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Raihan Sadath

Roll: 2333442
File: student_notebook (2)(1).ipynb
Total: 23.0/47 (48.94%)
Best 10: 23.0
Scaled: 7.19

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 3, in count_even NameError: name 'your_list' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 3, in count_even NameError: name 'your_list' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 3, in count_even NameError: name 'your_list' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Parth Thakur

Roll: 2333437
File: student_notebook (2).ipynb
Total: 25.0/47 (53.19%)
Best 10: 25.0
Scaled: 7.81

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | passed | 1.0 |
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | passed | 1.0 |
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Sanjana Kolakkunnath

Roll: 2333446
File: student_notebook (3) (1).ipynb
Total: 30.0/47 (63.83%)
Best 10: 30.0
Scaled: 9.38

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Reet Agarwal

Roll: 2333338
File: student_notebook (3).ipynb
Total: 36.0/47 (76.6%)
Best 10: 31.0
Scaled: 9.69

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | passed | 1.0 |
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Anandi

Roll: 2333411
File: student_notebook (4)(1).ipynb
Total: 0.0/47 (0.0%)
Best 10: 0.0
Scaled: 0.0

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_odd' is not defined
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_odd' is not defined
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_odd' is not defined

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(15) == 'Teen' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_length([1]) == 1 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_length([5, 10, 15, 20]) == 4 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert total_sum([10]) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert total_sum([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Anandi

Roll: 2333411
File: student_notebook (4).ipynb
Total: 25.0/47 (53.19%)
Best 10: 25.0
Scaled: 7.81

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Aditi Chauhan

Roll: 2333405
File: student_notebook (5) (2).ipynb
Total: 14.0/47 (29.79%)
Best 10: 14.0
Scaled: 4.38

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> TypeError: count_even() missing 1 required positional argument: 'lst'
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> TypeError: count_even() missing 1 required positional argument: 'lst'
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> TypeError: count_even() missing 1 required positional argument: 'lst'

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> TypeError: square_all() missing 1 required positional argument: 'lst'
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> TypeError: square_all() missing 1 required positional argument: 'lst'
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> TypeError: square_all() missing 1 required positional argument: 'lst'

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_33>", line 3, in filter_odd NameError: name 'n' is not defined
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_33>", line 3, in filter_odd NameError: name 'n' is not defined
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_33>", line 3, in filter_odd NameError: name 'n' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### ishi goel

Roll: 58
File: student_notebook (6) (1).ipynb
Total: 10.0/47 (21.28%)
Best 10: 10.0
Scaled: 3.12

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'number_exists' is not defined

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Kabir Tandon

Roll: 2333428
File: student_notebook (Kabir Tandion 2333428).ipynb
Total: 20.0/47 (42.55%)
Best 10: 20.0
Scaled: 6.25

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert classify_age(75) == 'Senior' | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(100, 50) == 50 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_27>", line 4, in find_pairs NameError: name 'a' is not defined
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_27>", line 4, in find_pairs NameError: name 'a' is not defined
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_27>", line 4, in find_pairs NameError: name 'a' is not defined

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Gouri P

Roll: 2333316
File: student_notebook 2333316 (2).ipynb
Total: 36.0/47 (76.6%)
Best 10: 31.0
Scaled: 9.69

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Khush Sawansukha

Roll: 2333429
File: student_notebook(1).ipynb
Total: 16.0/47 (34.04%)
Best 10: 16.0
Scaled: 5.0

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(10) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined
assert get_absolute(0) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'get_absolute' is not defined

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in square_all NameError: name 'n' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in square_all NameError: name 'n' is not defined
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 3, in square_all NameError: name 'n' is not defined

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_palindrome' is not defined
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_palindrome' is not defined
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_palindrome' is not defined
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_palindrome' is not defined

### student name

Roll: student roll number
File: student_notebook(2).ipynb
Total: 0.0/47 (0.0%)
Best 10: 0.0
Scaled: 0.0

#### Question: _identity_check_

+
Description: Student did not customize name/roll_number.

Assertion | Status | Score | Error
--- | --- | --- | ---
[missing student identity] | failed | 0.0 | Student notebook missing personalized name/roll_number. Please define: name = 'Your Name' roll_number = 'Your Roll Number'

### Kushal Surana

Roll: 2333326
File: student_notebook.ipynb
Total: 17.0/47 (36.17%)
Best 10: 17.0
Scaled: 5.31

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 2, in total_sum TypeError: 'type' object is not iterable
assert total_sum([10]) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 2, in total_sum TypeError: 'type' object is not iterable
assert total_sum([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_9>", line 2, in total_sum TypeError: 'type' object is not iterable

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'count_even' is not defined

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all File "<student_cell_19>", line 2, in <listcomp> NameError: name 'n' is not defined
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all File "<student_cell_19>", line 2, in <listcomp> NameError: name 'n' is not defined
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 2, in find_max TypeError: 'type' object is not iterable
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 2, in find_max TypeError: 'type' object is not iterable
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_21>", line 2, in find_max TypeError: 'type' object is not iterable

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'filter_odd' is not defined

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Harshita Saha

Roll: 2333317
File: student_notebook_2333317.ipynb
Total: 28.0/47 (59.57%)
Best 10: 28.0
Scaled: 8.75

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(4) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_odd(1) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_pairs' is not defined
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_pairs' is not defined
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_pairs' is not defined

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### jotham

Roll: 2333322
File: student_notebook_2333322.ipynb
Total: 12.0/47 (25.53%)
Best 10: 12.0
Scaled: 3.75

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_length([1]) == 1 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert find_length([5, 10, 15, 20]) == 4 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert total_sum([10]) == 10 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert total_sum([]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined
assert is_empty([1]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined
assert is_empty([None]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'is_empty' is not defined

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 3, in count_even TypeError: 'int' object is not iterable
assert count_even([1, 3, 5]) == 0 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 3, in count_even TypeError: 'int' object is not iterable
assert count_even([2, 4, 6]) == 3 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_17>", line 3, in count_even TypeError: 'int' object is not iterable

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all TypeError: 'type' object cannot be interpreted as an integer
assert square_all([2, 4]) == [4, 16] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all TypeError: 'type' object cannot be interpreted as an integer
assert square_all([]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_19>", line 2, in square_all TypeError: 'type' object cannot be interpreted as an integer

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined
assert find_max([5, 5, 5]) == 5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined
assert find_max([-10, -5, -20]) == -5 | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> NameError: name 'find_max' is not defined

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 2, in filter_odd UnboundLocalError: cannot access local variable 'n' where it is not associated with a value
assert filter_odd([2, 4, 6]) == [] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 2, in filter_odd UnboundLocalError: cannot access local variable 'n' where it is not associated with a value
assert filter_odd([1, 3, 5]) == [1, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<student_cell_25>", line 2, in filter_odd UnboundLocalError: cannot access local variable 'n' where it is not associated with a value

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

### Alda Nongmeikapam

Roll: 2333306
File: student_notebook_alda_2333306.ipynb
Total: 36.0/47 (76.6%)
Best 10: 31.0
Scaled: 9.69

#### Question: is_odd

+
Description: **Return:** `True` if the number is odd, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_odd(3) == True | passed | 1.0 |
assert is_odd(4) == False | passed | 1.0 |
assert is_odd(1) == True | passed | 1.0 |

#### Question: classify_age

+
Description: **Return:** `'Child'` if age < 13, `'Teen'` if 13-19, `'Adult'` if 20-59, `'Senior'` if 60+

Assertion | Status | Score | Error
--- | --- | --- | ---
assert classify_age(10) == 'Child' | passed | 1.0 |
assert classify_age(15) == 'Teen' | passed | 1.0 |
assert classify_age(35) == 'Adult' | passed | 1.0 |
assert classify_age(75) == 'Senior' | passed | 1.0 |

#### Question: find_length

+
Description: **Return:** The length of the list (number of elements)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_length([]) == 0 | passed | 1.0 |
assert find_length([1]) == 1 | passed | 1.0 |
assert find_length([5, 10, 15, 20]) == 4 | passed | 1.0 |

#### Question: total_sum

+
Description: **Return:** The sum of all numbers in the list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert total_sum([1, 2, 3]) == 6 | passed | 1.0 |
assert total_sum([10]) == 10 | passed | 1.0 |
assert total_sum([]) == 0 | passed | 1.0 |

#### Question: is_empty

+
Description: **Return:** `True` if list is empty, `False` otherwise

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_empty([]) == True | passed | 1.0 |
assert is_empty([1]) == False | passed | 1.0 |
assert is_empty([None]) == False | passed | 1.0 |

#### Question: get_absolute

+
Description: **Return:** The absolute value (always positive) of the number

Assertion | Status | Score | Error
--- | --- | --- | ---
assert get_absolute(-5) == 5 | passed | 1.0 |
assert get_absolute(10) == 10 | passed | 1.0 |
assert get_absolute(0) == 0 | passed | 1.0 |

#### Question: min_of_two

+
Description: **Return:** The minimum value between two numbers

Assertion | Status | Score | Error
--- | --- | --- | ---
assert min_of_two(5, 3) == 3 | passed | 1.0 |
assert min_of_two(100, 50) == 50 | passed | 1.0 |
assert min_of_two(7, 7) == 7 | passed | 1.0 |

#### Question: count_even

+
Description: **Return:** The count of even numbers **Example:** `[1, 2, 3, 4, 5, 6]` → `3` (because 2, 4, 6 are even)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_even([1, 2, 3, 4, 5, 6]) == 3 | passed | 1.0 |
assert count_even([1, 3, 5]) == 0 | passed | 1.0 |
assert count_even([2, 4, 6]) == 3 | passed | 1.0 |

#### Question: square_all

+
Description: **Return:** A new list where each element is squared **Example:** `[1, 2, 3]` → `[1, 4, 9]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert square_all([1, 2, 3]) == [1, 4, 9] | passed | 1.0 |
assert square_all([2, 4]) == [4, 16] | passed | 1.0 |
assert square_all([]) == [] | passed | 1.0 |

#### Question: find_max

+
Description: **Return:** The largest number in the list (assume list is not empty)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert find_max([3, 7, 2, 9, 1]) == 9 | passed | 1.0 |
assert find_max([5, 5, 5]) == 5 | passed | 1.0 |
assert find_max([-10, -5, -20]) == -5 | passed | 1.0 |

#### Question: number_exists

+
Description: **Return:** `True` if number is in list, `False` otherwise **Example:** `(5, [1, 2, 5, 8])` → `True`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert number_exists(5, [1, 2, 5, 8]) == True | passed | 1.0 |
assert number_exists(10, [1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert number_exists(1, [1]) == True | passed | 1.0 |

#### Question: filter_odd

+
Description: **Return:** A new list containing only odd numbers from input list **Example:** `[1, 2, 3, 4, 5]` → `[1, 3, 5]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert filter_odd([1, 2, 3, 4, 5]) == [1, 3, 5] | passed | 1.0 |
assert filter_odd([2, 4, 6]) == [] | passed | 1.0 |
assert filter_odd([1, 3, 5]) == [1, 3, 5] | passed | 1.0 |

#### Question: find_pairs

+
Description: **Return:** A list of tuples, where each pair sums to target value **Example:** `([1, 2, 3, 4, 5], 6)` → `[(1, 5), (2, 4)]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert normalize_pairs(find_pairs([1, 2, 3, 4, 5], 6)) == normalize_pairs([(1, 5), (2, 4)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([2, 4, 6], 8)) == normalize_pairs([(2, 6)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable
assert normalize_pairs(find_pairs([1, 1, 1, 1], 2)) == normalize_pairs([(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)]) | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> File "<context_code>", line 5, in normalize_pairs TypeError: 'NoneType' object is not iterable

#### Question: fibonacci

+
Description: **Return:** A list of first n Fibonacci numbers **Example:** n=5 → `[0, 1, 1, 2, 3]` (each number is sum of previous two)

Assertion | Status | Score | Error
--- | --- | --- | ---
assert fibonacci(5) == [0, 1, 1, 2, 3] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(1) == [0] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert fibonacci(6) == [0, 1, 1, 2, 3, 5] | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

#### Question: is_palindrome

+
Description: **Return:** `True` if list reads the same forwards and backwards, `False` otherwise **Example:** `[1, 2, 3, 2, 1]` → `True`, but `[1, 2, 3]` → `False`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_palindrome([1, 2, 3, 2, 1]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([1, 2, 3]) == False | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([5]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError
assert is_palindrome([]) == True | failed | 0.0 | Traceback (most recent call last): File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions exec(compile(code, "<assertion>", "exec"), ns) File "<assertion>", line 1, in <module> AssertionError

## Student Summary (Highest Best-N Across Attempts)

Student | Roll Number | Highest Best-N | Best out of | Scaled Score
--- | --- | --- | --- | ---
R KISHORE KUMAR | 2333441 | 14.0 | 10 | 4.38
Aayan Nariyal | 2333402 | 29.0 | 10 | 9.06
Abhijith A Vasudev | 2333403 | 15.0 | 10 | 4.69
Abhiram L | 2333327 | 12.0 | 10 | 3.75
Aditi Chauhan | 2333405 | 14.0 | 10 | 4.38
Ajitesh Solanki | 2333304 | 31.0 | 10 | 9.69
Akshita Dhagat | 2333305 | 7.0 | 10 | 2.19
Alda Nongmeikapam | 2333306 | 31.0 | 10 | 9.69
Alviya | 2333409 | 16.0 | 10 | 5.0
Anandi | 2333411 | 25.0 | 10 | 7.81
Ankita Bajoria | 2333412 | 23.0 | 10 | 7.19
Archa | 2333416 | 25.0 | 10 | 7.81
Ashish Bhardwaj | 2333311 | 7.0 | 10 | 2.19
Beryl Jacob Saigi | 2333312 | 19.0 | 10 | 5.94
Bhoomika Jain | 2333313 | 31.0 | 10 | 9.69
Dakshita | 2333420 | 26.0 | 10 | 8.12
Eesha Bamangaya | 2333423 | 16.0 | 10 | 5.0
Esther Ann Cheriyan | 2333424 | 31.0 | 10 | 9.69
Gouri P | 2333316 | 31.0 | 10 | 9.69
Harshita Saha | 2333317 | 28.0 | 10 | 8.75
Heer Domadia | 2333318 | 28.0 | 10 | 8.75
Jaishnavy | 2333319 | 31.0 | 10 | 9.69
Kabir Tandon | 2333428 | 20.0 | 10 | 6.25
Khush Sawansukha | 2333429 | 16.0 | 10 | 5.0
Kushal Surana | 2333326 | 17.0 | 10 | 5.31
Meenaakshi R Nair | 2333331 | 12.0 | 10 | 3.75
Mythri | 2333438 | 23.0 | 10 | 7.19
Naiya Kakkar | 2333333 | 14.0 | 10 | 4.38
Parth Thakur | 2333437 | 25.0 | 10 | 7.81
Raihan Sadath | 2333442 | 23.0 | 10 | 7.19
Rajdeep Dutta | 2333337 | 11.0 | 10 | 3.44
Reet Agarwal | 2333338 | 31.0 | 10 | 9.69
Sania Thakrar | 2333343 | 29.0 | 10 | 9.06
Sanjana Kolakkunnath | 2333446 | 30.0 | 10 | 9.38
Saravana Arjun | 2333447 | 26.0 | 10 | 8.12
Saumya | 2333448 | 26.0 | 10 | 8.12
Sebin Varghese Shibu | 2333345 | 25.0 | 10 | 7.81
Shivam | 2333452 | 32.0 | 10 | 10.0
Shreeji Anand | 233453 | 19.0 | 10 | 5.94
Shubham Bhattacharya | 2333349 | 18.0 | 10 | 5.62
Vanditha Patwary | 2333356 | 28.0 | 10 | 8.75
aaryan dubey | 2333302 | 3.0 | 10 | 0.94
ishi goel | 58 | 10.0 | 10 | 3.12
jotham | 2333322 | 12.0 | 10 | 3.75
student name | student roll number | 0.0 | 10 | 0.0