summaryrefslogtreecommitdiff
path: root/python/problems/while_and_if/consumers_anonymous/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/problems/while_and_if/consumers_anonymous/common.py')
-rw-r--r--python/problems/while_and_if/consumers_anonymous/common.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/problems/while_and_if/consumers_anonymous/common.py b/python/problems/while_and_if/consumers_anonymous/common.py
index 07a0ebf..895d985 100644
--- a/python/problems/while_and_if/consumers_anonymous/common.py
+++ b/python/problems/while_and_if/consumers_anonymous/common.py
@@ -5,7 +5,6 @@ from python.util import has_token_sequence, string_almost_equal, \
from server.hints import Hint
id = 201
-group = 'while_and_if'
number = 6
visible = True
@@ -111,7 +110,7 @@ def hint(python, code):
return [{'id' : 'printing'}]
# student does not print any values
- if not get_numbers(answer[0][1]):
+ if len(get_numbers(answer[0][1])) < 2:
return [{'id' : 'nonumber'}]
# student's answer is not correct (three possibilities)