<?xml version="1.0" encoding="UTF-8"?>
<quiz>
<!-- question: 29637  -->
  <question type="coderunner">
    <name>
      <text>Python3 sqr function with an attachment</text>
    </name>
    <questiontext format="html">
      <text><![CDATA[<p>Write sqr(n) in python3, using a sqrmodule.py module containing the actual function.</p>]]></text>
    </questiontext>
    <generalfeedback format="html">
      <text></text>
    </generalfeedback>
    <defaultgrade>1.0000000</defaultgrade>
    <penalty>0.0000000</penalty>
    <hidden>0</hidden>
    <idnumber></idnumber>
    <coderunnertype>python3</coderunnertype>
    <prototypetype>0</prototypetype>
    <allornothing>1</allornothing>
    <penaltyregime>10, 20, ...</penaltyregime>
    <precheck>0</precheck>
    <showsource>0</showsource>
    <answerboxlines>18</answerboxlines>
    <answerboxcolumns>100</answerboxcolumns>
    <answerpreload></answerpreload>
    <useace></useace>
    <resultcolumns></resultcolumns>
    <template></template>
    <iscombinatortemplate></iscombinatortemplate>
    <allowmultiplestdins></allowmultiplestdins>
    <answer>from sqrmodule import sqr</answer>
    <validateonsave>1</validateonsave>
    <testsplitterre></testsplitterre>
    <language></language>
    <acelang></acelang>
    <sandbox></sandbox>
    <grader></grader>
    <cputimelimitsecs></cputimelimitsecs>
    <memlimitmb></memlimitmb>
    <sandboxparams></sandboxparams>
    <templateparams></templateparams>
    <templateparamslang>twig</templateparamslang>
    <hoisttemplateparams>1</hoisttemplateparams>
    <extractcodefromjson>1</extractcodefromjson>
    <twigall>0</twigall>
    <uiplugin></uiplugin>
    <attachments>1</attachments>
    <attachmentsrequired>1</attachmentsrequired>
    <maxfilesize>1048576</maxfilesize>
    <filenamesregex>sqrmodule.py</filenamesregex>
    <filenamesexplain></filenamesexplain>
    <displayfeedback>1</displayfeedback>
    <testcases>
      <testcase testtype="0" useasexample="1" hiderestiffail="0" mark="1.0000000" >
      <testcode>
                <text>print(sqr(-7))</text>
      </testcode>
      <stdin>
                <text></text>
      </stdin>
      <expected>
                <text>49</text>
      </expected>
      <extra>
                <text></text>
      </extra>
      <display>
                <text>SHOW</text>
      </display>
    </testcase>
      <testcase testtype="0" useasexample="0" hiderestiffail="0" mark="1.0000000" >
      <testcode>
                <text>print(sqr(11))</text>
      </testcode>
      <stdin>
                <text></text>
      </stdin>
      <expected>
                <text>121</text>
      </expected>
      <extra>
                <text></text>
      </extra>
      <display>
                <text>SHOW</text>
      </display>
    </testcase>
      <testcase testtype="0" useasexample="0" hiderestiffail="0" mark="1.0000000" >
      <testcode>
                <text>print(sqr(-5))</text>
      </testcode>
      <stdin>
                <text></text>
      </stdin>
      <expected>
                <text>25</text>
      </expected>
      <extra>
                <text></text>
      </extra>
      <display>
                <text>HIDE</text>
      </display>
    </testcase>
    </testcases>
    <answerfiles>
<file name="sqrmodule.py" path="/" encoding="base64">IiIiQW4gaW1wbGVtZW50YXRpb24gb2YgdGhlIHNxciBmdW5jdGlvbiBpbiBhIGZpbGUgdG8gYmUgYXR0YWNoZWQgYW5kIGltcG9ydGVkIiIiCmRlZiBzcXIobik6CiAgICByZXR1cm4gbiAqIG4K</file>
    </answerfiles>
  </question>

</quiz>