## Evaluator Report

Sort By:
Student:

### student name — student roll number

File: submissions/sample_solutions.ipynb

Total: 19/19 (100.0%)

Question: ask_password
### 5. Write a program that keeps asking for a password until the user enters "python".

Assertion | Status | Score | Error
--- | --- | --- | ---
assert ask_password(['nope','123','python']) == 'python' | passed | 1 |

Question: check_number
### 1. Write a program to check if a number is **positive, negative, or zero**.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert check_number(10) == 'positive' | passed | 1 |
assert check_number(-5) == 'negative' | passed | 1 |
assert check_number(0) == 'zero' | passed | 1 |

Question: count_vowels
### 6. Write a program that counts the number of vowels in a given word.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_vowels('hello') == 2 | passed | 1 |
assert count_vowels('rhythm') == 0 | passed | 1 |
assert count_vowels('AEIOU') == 5 | passed | 1 |

Question: even_1_to_20
### 3. Write a program that prints only **even numbers** from 1 to 20.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert even_1_to_20() == [2,4,6,8,10,12,14,16,18,20] | passed | 1 |

Question: is_leap_year
### 4. Write a program that checks if a given year is a **leap year**.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_leap_year(2000) is True | passed | 1 |
assert is_leap_year(1900) is False | passed | 1 |
assert is_leap_year(2024) is True | passed | 1 |
assert is_leap_year(2023) is False | passed | 1 |

Question: largest_of_five
### 9. Write a program to find the **largest number** from a list of 5 numbers entered by the user.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert largest_of_five([1,2,3,4,5]) == 5 | passed | 1 |
assert largest_of_five([10,9,8,7,6]) == 10 | passed | 1 |

Question: mood_response
### 10. Bonus Fun One 🎭: Ask the user’s mood — if "happy", print "Keep smiling!"; if "sad", print "Cheer up, Python believes in you!"; else, print "Processing emotions... try again."

Assertion | Status | Score | Error
--- | --- | --- | ---
assert mood_response('happy') == 'Keep smiling!' | passed | 1 |
assert mood_response(' sad ') == 'Cheer up, Python believes in you!' | passed | 1 |
assert mood_response('confused') == 'Processing emotions... try again.' | passed | 1 |

Question: numbers_1_to_10
### 2. Write a program that prints all numbers from **1 to 10** using a `for` loop.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert numbers_1_to_10() == list(range(1, 11)) | passed | 1 |

Question: sum_1_to_100_loop
### 8. Write a program to **sum all numbers** from 1 to 100 using a loop.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert sum_1_to_100_loop() == 5050 | passed | 1 |

### student name — student roll number

File: submissions/student_notebook.ipynb

Total: 0/19 (0.0%)

Question: ask_password
### 5. Write a program that keeps asking for a password until the user enters "python".

Assertion | Status | Score | Error
--- | --- | --- | ---
assert ask_password(['nope','123','python']) == 'python' | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: check_number
### 1. Write a program to check if a number is **positive, negative, or zero**.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert check_number(10) == 'positive' | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert check_number(-5) == 'negative' | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert check_number(0) == 'zero' | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: count_vowels
### 6. Write a program that counts the number of vowels in a given word.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_vowels('hello') == 2 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert count_vowels('rhythm') == 0 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert count_vowels('AEIOU') == 5 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: even_1_to_20
### 3. Write a program that prints only **even numbers** from 1 to 20.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert even_1_to_20() == [2,4,6,8,10,12,14,16,18,20] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: is_leap_year
### 4. Write a program that checks if a given year is a **leap year**.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert is_leap_year(2000) is True | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert is_leap_year(1900) is False | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert is_leap_year(2024) is True | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert is_leap_year(2023) is False | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: largest_of_five
### 9. Write a program to find the **largest number** from a list of 5 numbers entered by the user.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert largest_of_five([1,2,3,4,5]) == 5 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert largest_of_five([10,9,8,7,6]) == 10 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: mood_response
### 10. Bonus Fun One 🎭: Ask the user’s mood — if "happy", print "Keep smiling!"; if "sad", print "Cheer up, Python believes in you!"; else, print "Processing emotions... try again."

Assertion | Status | Score | Error
--- | --- | --- | ---
assert mood_response('happy') == 'Keep smiling!' | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert mood_response(' sad ') == 'Cheer up, Python believes in you!' | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert mood_response('confused') == 'Processing emotions... try again.' | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: numbers_1_to_10
### 2. Write a program that prints all numbers from **1 to 10** using a `for` loop.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert numbers_1_to_10() == list(range(1, 11)) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: sum_1_to_100_loop
### 8. Write a program to **sum all numbers** from 1 to 100 using a loop.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert sum_1_to_100_loop() == 5050 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/instantgrade/comparison/comparison_service.py", line 57, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

✖

### Student Summary

Student | Roll Number | File | Total Marks | Out of | Percentage
--- | --- | --- | --- | --- | ---
student name | student roll number | sample_solutions.ipynb | 19 | 19 | 100.0%
student name | student roll number | student_notebook.ipynb | 0 | 19 | 0.0%