-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The feedback for the code fragments looks incorrect (a lot of similar issues):
# put your python code here
[a, b, c], [x, y, z] = (sorted(map(int, input().split())) for _ in 'lm')
if [a, b, c] == [x, y, z]:
a = "Boxes are equal"
elif a <= x and b <= y and c <= z:
a = "The first box is smaller than the second one"
elif a >= x and b >= y and c >= z:
a = "The first box is larger than the second one"
else:
a = "Boxes are incomparable"
print(a)
{
"quality": {
"code": "BAD",
"text": "Code quality (beta): BAD"
},
"issues": [
{
"code": "WPS359",
"text": "Found an iterable unpacking to list",
"line": "[a, b, c], [x, y, z] = (sorted(map(int, input().split())) for _ in 'lm')",
"line_number": 2,
"column_number": 1,
"category": "BEST_PRACTICES",
"influence_on_penalty": 0
},
{
"code": "WPS359",
"text": "Found an iterable unpacking to list",
"line": "[a, b, c], [x, y, z] = (sorted(map(int, input().split())) for _ in 'lm')",
"line_number": 2,
"column_number": 12,
"category": "BEST_PRACTICES",
"influence_on_penalty": 0
},
{
"code": "WPS414",
"text": "Found incorrect unpacking target",
"line": "[a, b, c], [x, y, z] = (sorted(map(int, input().split())) for _ in 'lm')",
"line_number": 2,
"column_number": 1,
"category": "ERROR_PRONE",
"influence_on_penalty": 0
},
{
"code": "WPS414",
"text": "Found incorrect unpacking target",
"line": "[a, b, c], [x, y, z] = (sorted(map(int, input().split())) for _ in 'lm')",
"line_number": 2,
"column_number": 1,
"category": "ERROR_PRONE",
"influence_on_penalty": 0
},
{
"code": "WPS221",
"text": "Found line with high Jones Complexity: 22 > 14",
"line": "[a, b, c], [x, y, z] = (sorted(map(int, input().split())) for _ in 'lm')",
"line_number": 2,
"column_number": 1,
"category": "COMPLEXITY",
"influence_on_penalty": 0
}
]
}
Reactions are currently unavailable
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't working