Solving Versioning and Dependencies Conflicts Part 1

Reverted back to original script. Ran both python27 and python script_name.py n=18 seed=53 commands in terminal, got this output:

Traceback (most recent call last):
File “magic_summation.py”, line 61, in
n = int(sys.argv[1])
ValueError: invalid literal for int() with base 10: 'n=18

Line 61 is below
#######################################
####### DO NOT EDIT THIS PART #########
#######################################

So how do I go about editing to get correct output?

Previously script would run, but give the wrong output

Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 18 and seed = 53.
Expected:
29,
but got:
27.

Reverting to the previous version is not a good strategy, because it was incorrect.

1 Like