This lab is a total waste of time!
When submitting this assignment, it shows that it failed the test case using n=13
and seed=8
. It got 19 for the result but it âexpectedâ 21. The value of 19, however, is clearly correct as can be seen by running the function with those parameter values in python 2.7.
So I asked ChatGPT:
I believe there is an error with
unittest.py
. Can you find it? Here is the file: [unittest.py code]
There is an issue in unittests.py
with the way the test_case
instance t
is handled in test_magic_summation_solution
. Specifically, t
is created multiple times, but only the last instance is added to the cases
list, which is why no case is being collected properly for feedback. Hereâs how to fix it:
- Append Each Test Case (
t
) to the List: Each instance oft
should be appended tocases
when created, regardless of whether it passes or fails. Currently,t
is created and returned without being appended consistently. - Return the
cases
List ing()
: After appending eacht
instance tocases
,g()
should return the entire list of test cases.
def test_magic_summation_solution(learner_func):
def g():
function_name = "magic_summation"
cases = []
# Check if the function type is correct
if not isinstance(learner_func, FunctionType):
t = test_case()
t.failed = True
t.msg = f"{function_name} has incorrect type"
t.want = FunctionType
t.got = type(learner_func)
cases.append(t) # Append the case to the list
return cases
n, seed, expected = 30, 10, 46
try:
result = learner_func(n, seed=seed)
t = test_case()
except Exception as e:
t = test_case()
t.failed = True
t.msg = f"{function_name} thrown an exception. Review your syntax and make sure it is properly converted to Python 3"
t.want = f"{function_name} must run without exceptions"
t.got = f"Exception raised:\n\t{e}"
cases.append(t) # Append the case to the list
return cases
# Check if the result is as expected
if result != expected:
t = test_case()
t.failed = True
if isinstance(result, float):
t.msg = f"{function_name} executed properly, but output is incorrect for parameters n = {n} and seed = {seed}. Note that the behavior of the division operator changed from Python 2 to Python 3. You should ask an LLM about it."
else:
t.msg = f"{function_name} executed properly, but output is incorrect for parameters n = {n} and seed = {seed}"
t.want = f"{expected}"
t.got = f"{result}"
cases.append(t) # Append the case to the list
return cases
# Append the passing test case if all checks pass
cases.append(t)
return cases
cases = g()
print_feedback(cases)
Note that I deleted the unitests.py
file and updated the lab, but it still shows the old version of Oct. 9.
This is very disappointing!
This exercise has been a HUGE disappointment. The issue is that the original magic_summation_python27.py
function in the assignment_part_1/
folder is flawed. It must be deleted (e.g. rm assignment_part_1/magic_summation_python27.py
) and then restored per the instructions. The original file gives incorrect results and will lead to issues if one uses this as the base for converting to Python 3.
I just opened this workbook today and the issue was identified a month ago. We should not have to manually do this step ourselves, as the environment should be fixed. Very disappointing.
@Colin_Alexander. Thanks for your report. Itâs been forwarded to the course staff.
Hello @Colin_Alexander,
Iâm really sorry to hear that youâve encountered difficulties with this part of the assignment. It seems there might have been a mix-up. We updated the assignment about a month ago to address some issues related to differences in randomness between Python 2 and Python 3. Normally, you should have received this updated version in your workspace.
It appears you might have accessed an older version of the assignment instead. Could you please share your lab ID with me? You can find this ID in the same panel where you go to obtain a new copy of the assignment. I will investigate this to understand what went wrong and ensure it doesnât happen again.
Thank you for bringing this to our attention,
Lucas
Lab ID removed due to sensitive data
Thanks @Colin_Alexander, Iâll have a look.
I miself have same issue.
few days working on this, but failed, after failed.
if there is tricky then should be mentioned or instruct.
i dont see how to resolve this.
i have very negative prespective about this assigment that impact about the course.
since this assigment is like wall of concrete.
sorry
I try to use chatgpt 4O, 4o1 mini, 4o1 preview, claude, Gemini.
requesting act as software engineer expert in version transition, act assoftware engineerinf, act as qc,⌠only chef i dont act to
Hi @Mati_chm,
Iâm sorry you are having such a hard time with this assignment.
Can you please describe the error you are facing?
Please note that changing the way how the repeated indices are removed may cause failure as np.choice of set() have both intrinsic randomness to it.
i copy the last onces
-1 the number donât match -
-2 error that will be resolve in 24 hours
From some reason, the commentes were removed.
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 13 and seed = 20.
Expected:
17,
but got:
91.
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
Date
Score
Passed
November 13, 2024 10:29 AM IST
Submitted at: Nov 13, 10:29 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 29 and seed = 15.
Expected:
46,
but got:
39.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 13, 2024 10:27 AM IST
Submitted at: Nov 13, 10:27 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 7 and seed = 55.
Expected:
14,
but got:
12.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 13, 2024 10:23 AM IST
Submitted at: Nov 13, 10:23 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 27 and seed = 50.
Expected:
47,
but got:
44.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 13, 2024 10:11 AM IST
Submitted at: Nov 13, 10:11 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 22 and seed = 69.
Expected:
39,
but got:
40.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 13, 2024 10:09 AM IST
Submitted at: Nov 13, 10:09 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 24 and seed = 56.
Expected:
34,
but got:
33.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 13, 2024 10:07 AM IST
Submitted at: Nov 13, 10:07 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 28 and seed = 63.
Expected:
48,
but got:
80.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 13, 2024 9:52 AM IST
Submitted at: Nov 13, 9:52 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 17 and seed = 43.
Expected:
32,
but got:
27.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 13, 2024 9:39 AM IST
Submitted at: Nov 13, 9:39 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 20 and seed = 15.
Expected:
33,
but got:
47.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 13, 2024 9:25 AM IST
Submitted at: Nov 13, 9:25 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 9 and seed = 7.
Expected:
16,
but got:
10.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 13, 2024 9:11 AM IST
Submitted at: Nov 13, 9:11 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 35 and seed = 10.
Expected:
56,
but got:
129.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 13, 2024 9:06 AM IST
Submitted at: Nov 13, 9:06 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 35 and seed = 25.
Expected:
54,
but got:
124.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 13, 2024 9:03 AM IST
Submitted at: Nov 13, 9:03 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 29 and seed = 48.
Expected:
57,
but got:
72.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 13, 2024 7:41 AM IST
Submitted at: Nov 13, 7:41 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
There was an error grading your submission. Details:
unmatched â)â (submission.py, line 83)
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 13, 2024 7:41 AM IST
Submitted at: Nov 13, 7:41 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
There was an error grading your submission. Details:
unexpected indent (submission.py, line 64)
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:52 AM IST
Submitted at: Nov 12, 11:52 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 17 and seed = 79.
Expected:
29,
but got:
27.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:50 AM IST
Submitted at: Nov 12, 11:50 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 30 and seed = 29.
Expected:
51,
but got:
40.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:47 AM IST
Submitted at: Nov 12, 11:47 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 6 and seed = 10.
Expected:
6,
but got:
9.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:46 AM IST
Submitted at: Nov 12, 11:46 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 20 and seed = 44.
Expected:
32,
but got:
33.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:44 AM IST
Submitted at: Nov 12, 11:44 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 20 and seed = 15.
Expected:
33,
but got:
31.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:43 AM IST
Submitted at: Nov 12, 11:43 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 38 and seed = 15.
Expected:
61,
but got:
62.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:40 AM IST
Submitted at: Nov 12, 11:40 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 29 and seed = 30.
Expected:
49,
but got:
40.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:38 AM IST
Submitted at: Nov 12, 11:38 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 4 and seed = 37.
Expected:
8,
but got:
4.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:35 AM IST
Submitted at: Nov 12, 11:35 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 21 and seed = 32.
Expected:
34,
but got:
39.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:31 AM IST
Submitted at: Nov 12, 11:31 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 28 and seed = 51.
Expected:
45,
but got:
62.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:29 AM IST
Submitted at: Nov 12, 11:29 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 4 and seed = 68.
Expected:
8,
but got:
19.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:27 AM IST
Submitted at: Nov 12, 11:27 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 18 and seed = 33.
Expected:
32,
but got:
43.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:18 AM IST
Submitted at: Nov 12, 11:18 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 32 and seed = 38.
Expected:
54,
but got:
69.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:14 AM IST
Submitted at: Nov 12, 11:14 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 30 and seed = 49.
Expected:
49,
but got:
58.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:08 AM IST
Submitted at: Nov 12, 11:08 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 12 and seed = 23.
Expected:
21,
but got:
29.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:05 AM IST
Submitted at: Nov 12, 11:05 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 14 and seed = 63.
Expected:
24,
but got:
17.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:04 AM IST
Submitted at: Nov 12, 11:04 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 9 and seed = 22.
Expected:
16,
but got:
11.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 11:01 AM IST
Submitted at: Nov 12, 11:01 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 29 and seed = 15.
Expected:
46,
but got:
37.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 10:57 AM IST
Submitted at: Nov 12, 10:57 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 21 and seed = 49.
Expected:
36,
but got:
42.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 10:53 AM IST
Submitted at: Nov 12, 10:53 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 24 and seed = 40.
Expected:
42,
but got:
72.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 10:50 AM IST
Submitted at: Nov 12, 10:50 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 29 and seed = 67.
Expected:
48,
but got:
44.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 10:47 AM IST
Submitted at: Nov 12, 10:47 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 18 and seed = 54.
Expected:
31,
but got:
9.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 10:46 AM IST
Submitted at: Nov 12, 10:46 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 13 and seed = 20.
Expected:
17,
but got:
91.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
November 12, 2024 10:43 AM IST
Submitted at: Nov 12, 10:43 AM IST
0/100
Score: 0 of 100
NoAssignment not passed
There was an error grading one or more parts of your submission. Please review the messages below for suggestions.
Update code from Python 2 to Python 3
Filename: Update code from Python 2 to Python 3
0/50Score: 0 of 50
Hide grader output
Grader output
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 26 and seed = 26.
Expected:
45,
but got:
14.320830117660595.
Handling outdated dependencies
Filename: Handling outdated dependencies
0/50Score: 0 of 50
Grading failed
Grader Error: Grader feedback not found
Visit the Discussion forum to see if your peers are experiencing or have found resolutions for similar errors. If the error isnât resolved in 24 hours, please reach out to Coursera through our Help Center.
Could you please send me privately your magic_summation.py file?
Regarding the Part 2, it looks like you didnât create the submission compressed file.
Could you please check if you followed these instructions?
Cheers,
Lucas
Hi i am also facing same issue,
will you please help me with this,
the python 2 version is returning and getting satisfiy with it but in python 3 version i am always seeing difference never able to pass the result,
example 30 10 case python 2 is giving 46 and it is expecting same in python 3 i am getting the result as 42 so please help me with this, to continue further,
LAB ID : atibqlfiwkgn
You should make sure that you are not using an old version of the python 2.7 solution. If its using the set() to create the unique indices then its the old version.
If you have the old version you should perform âget the latest versionâ and there are quite a few posts in this part of the forum how to do that properly, scroll down further!
i have update with latest version, by removing all old files and updated again with new now, still facing the issue LAB ID : atibqlfiwkgn
Try what I told you for now in the private message, lets see what happens!