From e0b7fd902b435111436d5523d5f66fe89f8ba1ee Mon Sep 17 00:00:00 2001 From: "hangde01@luther.edu" Date: Mon, 6 Jun 2016 14:09:55 -0400 Subject: [PATCH 1/2] added letters to multiple choice --- runestone/assess/multiplechoice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runestone/assess/multiplechoice.py b/runestone/assess/multiplechoice.py index 5fa2cafb1..239f9bec6 100644 --- a/runestone/assess/multiplechoice.py +++ b/runestone/assess/multiplechoice.py @@ -58,7 +58,7 @@ def depart_mc_node(self,node): if 'answer_' in k: x,label = k.split('_') node.mc_options['alabel'] = label - node.mc_options['atext'] = node.mc_options[k] + node.mc_options['atext'] = "(" +k[-1].upper() + ") " + node.mc_options[k] currFeedback = "feedback_" + label node.mc_options['feedtext'] = node.mc_options[currFeedback] if label in node.mc_options['correct']: @@ -122,6 +122,7 @@ def run(self): Question text ... """ + TEMPLATE_START = '''