Merge pull request #5692 from edx/markhoeber-doc935
Fixed code sample for python grader
This commit is contained in:
@@ -13,8 +13,12 @@ October, 2014
|
||||
|
||||
* - Date
|
||||
- Change
|
||||
* - 10/27/14
|
||||
- Fixed the code sample in :ref:`Script Tag Format` in the :ref:`Write
|
||||
Your Own Grader` chapter.
|
||||
* - 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
|
||||
- Updated :ref:`Set Important Dates for Your Course` to reflect change
|
||||
that course dates now use UTC.
|
||||
|
||||
@@ -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>
|
||||
<customresponse cfn="test_add_to_ten">
|
||||
<textline size="10"/><br/>
|
||||
<textline size="10/>
|
||||
<textline size="10"/>
|
||||
</customresponse>
|
||||
|
||||
</problem>
|
||||
</problem>
|
||||
|
||||
**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
|
||||
|
||||
* - Date
|
||||
- Change
|
||||
* - 10/23/14
|
||||
- Fixed the code sample in :ref:`Script Tag Format` in the :ref:`Write
|
||||
Your Own Grader` chapter.
|
||||
* - 10/17/14
|
||||
- Provided more explanation to the introduction to :ref:`Problems and
|
||||
Tools`.
|
||||
|
||||
@@ -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>
|
||||
<customresponse cfn="test_add_to_ten">
|
||||
<textline size="10"/><br/>
|
||||
<textline size="10/>
|
||||
<textline size="10"/>
|
||||
</customresponse>
|
||||
|
||||
</problem>
|
||||
</problem>
|
||||
|
||||
**Important**: Python honors indentation. Within the ``<script>`` tag, the ``def check_func(expect, ans):`` line must have no indentation.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user