You accomplished only 1 (less than 4) of the 8 core goals.
✓
accomplished
Procedure Requirements
Code checks which require that your code is written in a certain way, regardless of what happens when it runs (e.g., how many lines of code call a certain function).
Accomplished all core and extra procedure goals.
✓
accomplished
Core goals
Complete all core goals for core credit. Get partial credit for completing at least half, and more partial credit for completing at least 90%.
Accomplished all 1 goal.
✓
accomplished
Use int() in exactly two places.
It's only necessary to use int() twice: right at the very start after collecting inputs you can convert the to integers (once per input) and then use those variables throughout the rest of the program.
Expected exactly 2 calls to int(<any arguments>), found 2.
✗
failed
Product Requirements
Result tests that run your code and check for the internal result values it produces (e.g., the return value from a specific function).
Did not accomplish the core product goals.
✗
failed
Core goals
Complete all core goals for core credit. Get partial credit for completing at least half, and more partial credit for completing at least 90%.
Accomplished 0 of 7 goals.
✗
failed
bug #1 (string quotation marks)
You need to change the single-quotes on line 13 into double quotes because of the apostrophe in "Let's".
Failed to establish testing context:
Failed to establish context The first line of output of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Notes
Failed to establish context The first line of output of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Failed to establish context The first line of output of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
✗
failed
bug #2 (type conversion)
The call to int on line 17 converts firstNum to an integer, but the result is discarded. The code on line 19 is correct in that it converts the value and then overwrites the result. Changing line 17 to look like line 19 solves the issue, which doesn't manifest until line 27, when the types of the values change how min works.
Failed to establish testing context:
Failed to establish context The 'smaller number' line of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Notes
Failed to establish context The 'smaller number' line of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Failed to establish context The 'smaller number' line of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
✗
failed
bug #2 (type conversion)
The call to int on line 17 converts firstNum to an integer, but the result is discarded. The code on line 19 is correct in that it converts the value and then overwrites the result. Changing line 17 to look like line 19 solves the issue, which doesn't manifest until line 27, when the types of the values change how min works.
Failed to establish testing context:
Failed to establish context The 'smaller number' line of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Notes
Failed to establish context The 'smaller number' line of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Failed to establish context The 'smaller number' line of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
✗
failed
bug #3 (variable vs. string)
On line 25, the quotes around the word secondNum tell Python to literally use that text, rather than using the value of the variable with that name. Earlier on the same line, firstNum is used correctly, without quotes.
Failed to establish testing context:
Failed to establish context The line 'the numbers you entered...' of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Notes
Failed to establish context The line 'the numbers you entered...' of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Failed to establish context The line 'the numbers you entered...' of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
✗
failed
bug #4 (string max)
On line 26, the max function is used, but the str function is used inside of the function call to convert both arguments to strings. The arguments should be compared as numbers, not as text, because when compared as text alphabetical ordering is used, making '7' count as "larger than" '15' since '7' comes after '1' in the dictionary.
Failed to establish testing context:
Failed to establish context The 'larger number' line of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Notes
Failed to establish context The 'larger number' line of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Failed to establish context The 'larger number' line of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
✗
failed
bug #5 (string repetition)
On line 29, a series of equals signs to represent a horizontal bar is printed, using multiplication between a string and a number. Line 30 has the bug, where addition is attempted instead of multiplication.
Failed to establish testing context:
Failed to establish context The two lines of '=' signs of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Notes
Failed to establish context The two lines of '=' signs of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Failed to establish context The two lines of '=' signs of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
✗
failed
bug #6 (concatenation vs. addition)
Online 34, concatenation of strings is used to build a prompt. However, while firstNum is turned into a string using the str function, secondNum is not. Depending on what you did with bug #2, this will probably cause an error, as numbers and strings cannot be directly added together.
Failed to establish testing context:
Failed to establish context The addition question of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Notes
Failed to establish context The addition question of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Failed to establish context The addition question of the value: Test setup failed. Caused by
Traceback (most recent call last):
File "potluck/contexts.py", line 316, in create
our_results = self.builder(prev_context)
File "potluck/specifications.py", line 2997, in build_context
orig = context_utils.extract(prev_context, slot)
File "potluck/context_utils.py", line 109, in extract
raise MissingContextError(
potluck.context_utils.MissingContextError: Required context slot 'value' not found.
Your code
Test results
File 'debugMe.py'
We will evaluate your submitted file 'debugMe.py'.
Evaluating 'debugMe.py'
Code in the target file
We parsed the code in the target file and paidattention to how it was written.
The code for 'debugMe.py' (shown elsewhere).
Program output (test #1)
We ran your program with 15 and 7 as the inputs.
We ran your submitted code
Testing details:
Will be terminated if it takes longer than 5s.
Printed output and error messages will be recorded.
The following inputs will be provided:
'15'
'7'
''
Your output
Solution output
Comparison
Let's practice some math!
Enter an integer between 1 and 20: 15
Enter another integer between 1 and 20: 7
The numbers you entered are 15 and secondNum
The larger number is 15
The smaller number is 7
These bars show how big they are:
===============
=======
[Addition] What is 15+7 ?
[Addition] The answer is: 22
Let's practice some math!
Enter an integer between 1 and 20: 15
Enter another integer between 1 and 20: 7
The numbers you entered are 15 and secondNum
The larger number is 15
The smaller number is 7
These bars show how big they are:
===============
=======
[Addition] What is 15+7 ?
[Addition] The answer is: 22
We searched through the value for the first line of output.
An error was encountered while attempting to run this test.
(arising in context 'The first line of output of the value')
caused by: Required context slot 'value' not found.
The 'smaller number' line of the value
We searched through the value for the 'smaller number' line.
An error was encountered while attempting to run this test.
(arising in context 'The 'smaller number' line of the value')
caused by: Required context slot 'value' not found.
The 'smaller number' line of the value
We searched through the value for the 'smaller number' line.
An error was encountered while attempting to run this test.
(arising in context 'The 'smaller number' line of the value')
caused by: Required context slot 'value' not found.
The line 'the numbers you entered...' of the value
We searched through the value for the line 'The numbers you entered...'.
An error was encountered while attempting to run this test.
(arising in context 'The line 'the numbers you entered...' of the value')
caused by: Required context slot 'value' not found.
The 'larger number' line of the value
We searched through the value for the 'larger number' line.
An error was encountered while attempting to run this test.
(arising in context 'The 'larger number' line of the value')
caused by: Required context slot 'value' not found.
The two lines of '=' signs of the value
We searched through the value for the two lines of '=' signs.
An error was encountered while attempting to run this test.
(arising in context 'The two lines of '=' signs of the value')
caused by: Required context slot 'value' not found.
The addition question of the value
We searched through the value for the addition question.
An error was encountered while attempting to run this test.
(arising in context 'The addition question of the value')
caused by: Required context slot 'value' not found.
Program output (test #2)
We ran your program with 5 and 6 as the inputs.
We ran your submitted code
Testing details:
Will be terminated if it takes longer than 5s.
Printed output and error messages will be recorded.
The following inputs will be provided:
'5'
'6'
''
Your output
Solution output
Comparison
Let's practice some math!
Enter an integer between 1 and 20: 5
Enter another integer between 1 and 20: 6
The numbers you entered are 5 and secondNum
The larger number is 6
The smaller number is 5
These bars show how big they are:
=====
======
[Addition] What is 5+6 ?
[Addition] The answer is: 11
Let's practice some math!
Enter an integer between 1 and 20: 5
Enter another integer between 1 and 20: 6
The numbers you entered are 5 and secondNum
The larger number is 6
The smaller number is 5
These bars show how big they are:
=====
======
[Addition] What is 5+6 ?
[Addition] The answer is: 11