debugTest: excellent

(evaluated at 20210628@15:26:44)

Rubric report

Overall evaluation: excellent

You accomplished all core and extra goals. Great job!

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.
accomplished Behavior Requirements
Behavior tests that run your code and check what inputs it requests from and what outputs it displays to the user (e.g., what is printed given certain typed inputs).
Accomplished all core and extra behavior 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 7 goals.
accomplished 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".
Strings are the same.
Value tested
Let's practice some math!
accomplished 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.
accomplished (in 2 contexts)
Accomplished in 2 contexts:
  • In context
    The 'smaller number' line of the output
    We searched through the output for the 'smaller number' line.
    Strings are the same.
    Value tested
    The smaller number is 7
  • In context
    The 'smaller number' line of the output
    We searched through the output for the 'smaller number' line.
    Strings are the same.
    Value tested
    The smaller number is 5
accomplished 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.
accomplished (in 2 contexts)
Accomplished in 2 contexts:
  • In context
    The 'smaller number' line of the output
    We searched through the output for the 'smaller number' line.
    Strings are the same.
    Value tested
    The smaller number is 7
  • In context
    The 'smaller number' line of the output
    We searched through the output for the 'smaller number' line.
    Strings are the same.
    Value tested
    The smaller number is 5
accomplished 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.
accomplished (in 2 contexts)
Accomplished in 2 contexts:
  • In context
    The line 'the numbers you entered...' of the output
    We searched through the output for the line 'The numbers you entered...'.
    Strings are the same.
    Value tested
    The numbers you entered are 15 and secondNum
  • In context
    The line 'the numbers you entered...' of the output
    We searched through the output for the line 'The numbers you entered...'.
    Strings are the same.
    Value tested
    The numbers you entered are 5 and secondNum
accomplished 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.
accomplished (in 2 contexts)
Accomplished in 2 contexts:
  • In context
    The 'larger number' line of the output
    We searched through the output for the 'larger number' line.
    Strings are the same.
    Value tested
    The larger number is 15
  • In context
    The 'larger number' line of the output
    We searched through the output for the 'larger number' line.
    Strings are the same.
    Value tested
    The larger number is 6
accomplished 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.
accomplished (in 2 contexts)
Accomplished in 2 contexts:
  • In context
    The two lines of '=' signs of the output
    We searched through the output for the two lines of '=' signs.
    Strings are the same.
    Value tested
    ===============
    =======
  • In context
    The two lines of '=' signs of the output
    We searched through the output for the two lines of '=' signs.
    Strings are the same.
    Value tested
    =====
    ======
accomplished 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.
accomplished (in 2 contexts)
Accomplished in 2 contexts:
  • In context
    The addition question of the output
    We searched through the output for the addition question.
    Strings are the same.
    Value tested
    [Addition] What is 15+7 ? 
  • In context
    The addition question of the output
    We searched through the output for the addition question.
    Strings are the same.
    Value tested
    [Addition] What is 5+6 ? 

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'
    • ''
The first line of output of the output
We searched through the output for the first line of output.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x10935e550>
module
parse_errors
[]
output
Let's practice some math!
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x109363c10>
ref_module
ref_parse_errors
[]
ref_output
Let's practice some math!
The 'smaller number' line of the output
We searched through the output for the 'smaller number' line.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x10935e550>
module
parse_errors
[]
output
The smaller number is 7
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x109363c10>
ref_module
ref_parse_errors
[]
ref_output
The smaller number is 7
The 'smaller number' line of the output
We searched through the output for the 'smaller number' line.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x10935e550>
module
parse_errors
[]
output
The smaller number is 7
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x109363c10>
ref_module
ref_parse_errors
[]
ref_output
The smaller number is 7
The line 'the numbers you entered...' of the output
We searched through the output for the line 'The numbers you entered...'.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x10935e550>
module
parse_errors
[]
output
The numbers you entered are 15 and secondNum
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x109363c10>
ref_module
ref_parse_errors
[]
ref_output
The numbers you entered are 15 and secondNum
The 'larger number' line of the output
We searched through the output for the 'larger number' line.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x10935e550>
module
parse_errors
[]
output
The larger number is 15
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x109363c10>
ref_module
ref_parse_errors
[]
ref_output
The larger number is 15
The two lines of '=' signs of the output
We searched through the output for the two lines of '=' signs.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x10935e550>
module
parse_errors
[]
output
===============
=======
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x109363c10>
ref_module
ref_parse_errors
[]
ref_output
===============
=======
The addition question of the output
We searched through the output for the addition question.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x10935e550>
module
parse_errors
[]
output
[Addition] What is 15+7 ? 
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x109363c10>
ref_module
ref_parse_errors
[]
ref_output
[Addition] What is 15+7 ? 
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'
    • ''
The first line of output of the output
We searched through the output for the first line of output.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x109373340>
module
parse_errors
[]
output
Let's practice some math!
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x1093749d0>
ref_module
ref_parse_errors
[]
ref_output
Let's practice some math!
The 'smaller number' line of the output
We searched through the output for the 'smaller number' line.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x109373340>
module
parse_errors
[]
output
The smaller number is 5
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x1093749d0>
ref_module
ref_parse_errors
[]
ref_output
The smaller number is 5
The 'smaller number' line of the output
We searched through the output for the 'smaller number' line.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x109373340>
module
parse_errors
[]
output
The smaller number is 5
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x1093749d0>
ref_module
ref_parse_errors
[]
ref_output
The smaller number is 5
The line 'the numbers you entered...' of the output
We searched through the output for the line 'The numbers you entered...'.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x109373340>
module
parse_errors
[]
output
The numbers you entered are 5 and secondNum
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x1093749d0>
ref_module
ref_parse_errors
[]
ref_output
The numbers you entered are 5 and secondNum
The 'larger number' line of the output
We searched through the output for the 'larger number' line.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x109373340>
module
parse_errors
[]
output
The larger number is 6
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x1093749d0>
ref_module
ref_parse_errors
[]
ref_output
The larger number is 6
The two lines of '=' signs of the output
We searched through the output for the two lines of '=' signs.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x109373340>
module
parse_errors
[]
output
=====
======
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x1093749d0>
ref_module
ref_parse_errors
[]
ref_output
=====
======
The addition question of the output
We searched through the output for the addition question.
task_info
{'target': 'debugMe.py', 'title': 'Debugging Task', 'desc': "Fix up some code we've given you.", 'id': 'debugTest', 'specification': }
username
perfect
submission_root
./submissions/perfect/debugTest
default_file
debugMe.py
actual_file
debugMe.py
filename
debugMe.py
file_path
./submissions/perfect/debugTest/debugMe.py
original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
scope
<_ast.Module object at 0x109373340>
module
parse_errors
[]
output
[Addition] What is 5+6 ? 
ref_original_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_source
"""
debugMe.py

Your name: Peter Mawhorter
Your username: pmwh
Submission date: 2021-6-22
"""

# Buggy debugMe.py for potluck system testing.
# Fix the bugs in this file so that its output matches what's shown in
# the problem set.

print("Let's practice some math!")

# Get inputs and convert them to integers:
firstNum = input('Enter an integer between 1 and 20: ')
firstNum = int(firstNum)
secondNum = input('Enter another integer between 1 and 20: ')
secondNum = int(secondNum)

# Print a blank line:
print()

# Print some info about the numbers:
print('The numbers you entered are', firstNum, 'and', 'secondNum')
print('The larger number is', max(firstNum, secondNum))
print('The smaller number is', min(firstNum, secondNum))
print('These bars show how big they are:')
print('=' * firstNum)
print('=' * secondNum)
print() # Blank line

# Test sum:
prompt = '[Addition] What is ' + str(firstNum) + '+' + str(secondNum) + ' ? '
input(prompt) # Note: we intentionally don't store or check the result
sumResult = firstNum + secondNum
print('[Addition] The answer is:', sumResult)
print() # Blank line
ref_scope
<_ast.Module object at 0x1093749d0>
ref_module
ref_parse_errors
[]
ref_output
[Addition] What is 5+6 ?