|
1 | | -# Copyright (C) 2013 Bradley N. Miller |
| 1 | +# ********* |
| 2 | +# |docname| |
| 3 | +# ********* |
2 | 4 | # |
3 | | -# This program is free software: you can redistribute it and/or modify |
4 | | -# it under the terms of the GNU General Public License as published by |
5 | | -# the Free Software Foundation, either version 3 of the License, or |
6 | | -# (at your option) any later version. |
| 5 | +# .. Copyright (C) 2013 Bradley N. Miller |
7 | 6 | # |
8 | | -# This program is distributed in the hope that it will be useful, |
9 | | -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | | -# GNU General Public License for more details. |
| 7 | +# This program is free software: you can redistribute it and/or modify |
| 8 | +# it under the terms of the GNU General Public License as published by |
| 9 | +# the Free Software Foundation, either version 3 of the License, or |
| 10 | +# (at your option) any later version. |
12 | 11 | # |
13 | | -# You should have received a copy of the GNU General Public License |
14 | | -# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 12 | +# This program is distributed in the hope that it will be useful, |
| 13 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | +# GNU General Public License for more details. |
| 16 | +# |
| 17 | +# You should have received a copy of the GNU General Public License |
| 18 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 19 | # |
16 | 20 | __author__ = "isaiahmayerchak" |
17 | 21 |
|
@@ -119,22 +123,17 @@ class FillInTheBlank(RunestoneIdDirective): |
119 | 123 | """ |
120 | 124 | .. fillintheblank:: some_unique_id_here |
121 | 125 |
|
122 | | - Complete the sentence: |blank| had a |blank| lamb. One plus one is: (note that if there aren't enough blanks for the feedback given, they're added to the end of the problem. So, we don't **need** to specify a blank here.) |
123 | | -
|
124 | | - - :Mary: Is the correct answer. |
125 | | - :Sue: Is wrong. |
126 | | - :x: Try again. (Note: the last item of feedback matches anything, regardless of the string it's given.) |
127 | | - - :little: That's right. |
128 | | - :.*: Nope. |
129 | | - - :2: Right on! Numbers can be given in decimal, hex (0x10 == 16), octal (0o10 == 8), binary (0b10 == 2), or using scientific notation (1e1 == 10), both here and by the user when answering the question. |
130 | | - :2 1: Close.... (The second number is a tolerance, so this matches 1 or 3.) |
131 | | - :x: Nope. (As earlier, this matches anything.) |
132 | | -
|
133 | | - config values (conf.py): |
134 | | -
|
135 | | - - fitb_div_class - custom CSS class of the component's outermost div |
| 126 | + Put the text of the question here. |
| 127 | + See https://runestone.academy/runestone/books/published/overview/Assessments/fitb.html |
| 128 | + for additional options and documentation. |
| 129 | + - :Put the correct answer here: Put feedback displayed for this answer here. |
| 130 | + :x: Put feedback displayed for an incorrect answer here. |
136 | 131 | """ |
137 | 132 |
|
| 133 | + # config values (conf.py): |
| 134 | + # |
| 135 | + # - fitb_div_class - custom CSS class of the component's outermost div |
| 136 | + |
138 | 137 | required_arguments = 1 |
139 | 138 | optional_arguments = 0 |
140 | 139 | final_argument_whitespace = True |
|
0 commit comments