Evaluator Report


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".
AssertionStatusScoreError
assert ask_password(['nope','123','python']) == 'python'passed1
Question: check_number
### 1. Write a program to check if a number is **positive, negative, or zero**.
AssertionStatusScoreError
assert check_number(10) == 'positive'passed1
assert check_number(-5) == 'negative'passed1
assert check_number(0) == 'zero'passed1
Question: count_vowels
### 6. Write a program that counts the number of vowels in a given word.
AssertionStatusScoreError
assert count_vowels('hello') == 2passed1
assert count_vowels('rhythm') == 0passed1
assert count_vowels('AEIOU') == 5passed1
Question: even_1_to_20
### 3. Write a program that prints only **even numbers** from 1 to 20.
AssertionStatusScoreError
assert even_1_to_20() == [2,4,6,8,10,12,14,16,18,20]passed1
Question: is_leap_year
### 4. Write a program that checks if a given year is a **leap year**.
AssertionStatusScoreError
assert is_leap_year(2000) is Truepassed1
assert is_leap_year(1900) is Falsepassed1
assert is_leap_year(2024) is Truepassed1
assert is_leap_year(2023) is Falsepassed1
Question: largest_of_five
### 9. Write a program to find the **largest number** from a list of 5 numbers entered by the user.
AssertionStatusScoreError
assert largest_of_five([1,2,3,4,5]) == 5passed1
assert largest_of_five([10,9,8,7,6]) == 10passed1
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."
AssertionStatusScoreError
assert mood_response('happy') == 'Keep smiling!'passed1
assert mood_response(' sad ') == 'Cheer up, Python believes in you!'passed1
assert mood_response('confused') == 'Processing emotions... try again.'passed1
Question: numbers_1_to_10
### 2. Write a program that prints all numbers from **1 to 10** using a `for` loop.
AssertionStatusScoreError
assert numbers_1_to_10() == list(range(1, 11))passed1
Question: sum_1_to_100_loop
### 8. Write a program to **sum all numbers** from 1 to 100 using a loop.
AssertionStatusScoreError
assert sum_1_to_100_loop() == 5050passed1

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".
AssertionStatusScoreError
assert ask_password(['nope','123','python']) == 'python'failed0Traceback (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**.
AssertionStatusScoreError
assert check_number(10) == 'positive'failed0Traceback (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'failed0Traceback (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'failed0Traceback (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.
AssertionStatusScoreError
assert count_vowels('hello') == 2failed0Traceback (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') == 0failed0Traceback (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') == 5failed0Traceback (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.
AssertionStatusScoreError
assert even_1_to_20() == [2,4,6,8,10,12,14,16,18,20]failed0Traceback (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**.
AssertionStatusScoreError
assert is_leap_year(2000) is Truefailed0Traceback (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 Falsefailed0Traceback (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 Truefailed0Traceback (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 Falsefailed0Traceback (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.
AssertionStatusScoreError
assert largest_of_five([1,2,3,4,5]) == 5failed0Traceback (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]) == 10failed0Traceback (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."
AssertionStatusScoreError
assert mood_response('happy') == 'Keep smiling!'failed0Traceback (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!'failed0Traceback (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.'failed0Traceback (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.
AssertionStatusScoreError
assert numbers_1_to_10() == list(range(1, 11))failed0Traceback (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.
AssertionStatusScoreError
assert sum_1_to_100_loop() == 5050failed0Traceback (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 namestudent roll numbersample_solutions.ipynb1919100.0%
student namestudent roll numberstudent_notebook.ipynb0190.0%