Commit fa93a692 by Mark Hoeber

Merge pull request #5692 from edx/markhoeber-doc935

Fixed code sample for python grader
parents ff4a1755 c2428c72
...@@ -13,8 +13,12 @@ October, 2014 ...@@ -13,8 +13,12 @@ October, 2014
* - Date * - Date
- Change - Change
* - 10/27/14
- Fixed the code sample in :ref:`Script Tag Format` in the :ref:`Write
Your Own Grader` chapter.
* - 10/23/14 * - 10/23/14
- Added note about limited support of annotation problem type to :ref:`Annotation`. - Added note about limited support of annotation problem type to
:ref:`Annotation`.
* - 10/16/14 * - 10/16/14
- Updated :ref:`Set Important Dates for Your Course` to reflect change - Updated :ref:`Set Important Dates for Your Course` to reflect change
that course dates now use UTC. that course dates now use UTC.
......
...@@ -126,10 +126,10 @@ The script tag format encloses a Python script that contains a "check function" ...@@ -126,10 +126,10 @@ The script tag format encloses a Python script that contains a "check function"
<p>Enter two integers that sum to 10. </p> <p>Enter two integers that sum to 10. </p>
<customresponse cfn="test_add_to_ten"> <customresponse cfn="test_add_to_ten">
<textline size="10"/><br/> <textline size="10"/><br/>
<textline size="10/> <textline size="10"/>
</customresponse> </customresponse>
</problem> </problem>
**Important**: Python honors indentation. Within the ``<script>`` tag, the ``def check_func(expect, ans):`` line must have no indentation. **Important**: Python honors indentation. Within the ``<script>`` tag, the ``def check_func(expect, ans):`` line must have no indentation.
......
...@@ -13,6 +13,9 @@ October, 2014 ...@@ -13,6 +13,9 @@ October, 2014
* - Date * - Date
- Change - Change
* - 10/23/14
- Fixed the code sample in :ref:`Script Tag Format` in the :ref:`Write
Your Own Grader` chapter.
* - 10/17/14 * - 10/17/14
- Provided more explanation to the introduction to :ref:`Problems and - Provided more explanation to the introduction to :ref:`Problems and
Tools`. Tools`.
......
...@@ -126,10 +126,10 @@ The script tag format encloses a Python script that contains a "check function" ...@@ -126,10 +126,10 @@ The script tag format encloses a Python script that contains a "check function"
<p>Enter two integers that sum to 10. </p> <p>Enter two integers that sum to 10. </p>
<customresponse cfn="test_add_to_ten"> <customresponse cfn="test_add_to_ten">
<textline size="10"/><br/> <textline size="10"/><br/>
<textline size="10/> <textline size="10"/>
</customresponse> </customresponse>
</problem> </problem>
**Important**: Python honors indentation. Within the ``<script>`` tag, the ``def check_func(expect, ans):`` line must have no indentation. **Important**: Python honors indentation. Within the ``<script>`` tag, the ``def check_func(expect, ans):`` line must have no indentation.
......
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