Commit f2e930a3 by Alexander Kryklia

small improvements

parent d7801fda
...@@ -46,7 +46,7 @@ def grade(user_input, correct_answer): ...@@ -46,7 +46,7 @@ def grade(user_input, correct_answer):
if use_targets is True: if use_targets is True:
{'1': 't1', 'name_with_icon': 't2'} {'1': 't1', 'name_with_icon': 't2'}
else: else:
{'1': '(10, 10)', 'name_with_icon': '[(10, 10), 20]'} {'1': '[10, 10]', 'name_with_icon': '[[10, 10], 20]'}
Returns: Returns:
True or False. True or False.
...@@ -68,8 +68,7 @@ def grade(user_input, correct_answer): ...@@ -68,8 +68,7 @@ def grade(user_input, correct_answer):
Returns: bool. Returns: bool.
""" """
if not isinstance(correct_answer, list) or \ if not isinstance(correct_answer, list) or isinstance(user_answer, list):
not isinstance(user_answer, list):
return False return False
r = 10 r = 10
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment