<?xml version="1.0" encoding="UTF-8"?>
<quiz>
<!-- question: 2091  -->
  <question type="coderunner">
    <name>
      <text>NMU_BLOCKLY_PSEUDOCODE_EXACT_VIA_PYTHON3_w_input</text>
    </name>
    <questiontext format="html">
      <text><![CDATA[<p>&nbsp;</p>]]></text>
    </questiontext>
    <generalfeedback format="html">
      <text></text>
    </generalfeedback>
    <defaultgrade>1</defaultgrade>
    <penalty>0</penalty>
    <hidden>0</hidden>
    <idnumber></idnumber>
    <coderunnertype>blockly_pseudocode_exact</coderunnertype>
    <prototypetype>2</prototypetype>
    <allornothing>1</allornothing>
    <penaltyregime>33.3, 66.7, ...</penaltyregime>
    <precheck>0</precheck>
    <hidecheck>0</hidecheck>
    <showsource>0</showsource>
    <answerboxlines>18</answerboxlines>
    <answerboxcolumns>100</answerboxcolumns>
    <answerpreload><![CDATA[<xml xmlns="https://developers.google.com/blockly/xml"><code xmlns=""><![CDATA[]]]]><![CDATA[></code></xml>]]></answerpreload>
    <globalextra></globalextra>
    <useace>0</useace>
    <resultcolumns></resultcolumns>
    <template><![CDATA[import xml.etree.ElementTree as ET

__saved_input__ = input
def input(prompt=''):
    s = __saved_input__(prompt)
    return s

answer = """
{{ STUDENT_ANSWER | e('py') }}
"""

code = ET.fromstring(answer).find("code").text

if code:
    exec(code)

SEPARATOR = "#<ab@17943918#@>#"

{% for TEST in TESTCASES %}
{{ TEST.testcode }}
{% if not loop.last %}
print(SEPARATOR)
{% endif %}
{% endfor %}]]></template>
    <iscombinatortemplate>1</iscombinatortemplate>
    <allowmultiplestdins>0</allowmultiplestdins>
    <answer><![CDATA[<xml xmlns="https://developers.google.com/blockly/xml"><code xmlns=""><![CDATA[]]]]><![CDATA[></code></xml>]]></answer>
    <validateonsave>0</validateonsave>
    <testsplitterre><![CDATA[|#<ab@17943918#@>#\n|ms]]></testsplitterre>
    <language>python3</language>
    <acelang></acelang>
    <sandbox></sandbox>
    <grader>EqualityGrader</grader>
    <cputimelimitsecs></cputimelimitsecs>
    <memlimitmb></memlimitmb>
    <sandboxparams></sandboxparams>
    <templateparams></templateparams>
    <hoisttemplateparams>1</hoisttemplateparams>
    <templateparamslang>twig</templateparamslang>
    <templateparamsevalpertry>0</templateparamsevalpertry>
    <templateparamsevald>{}</templateparamsevald>
    <twigall>0</twigall>
    <uiplugin>blockly</uiplugin>
    <uiparameters><![CDATA[{"locale":"pc-en","customBlocks":"custom","toolbox":"<xml xmlns=\"https:\/\/developers.google.com\/blockly\/xml\" id=\"toolbox\" style=\"display: none\"><category name=\"Tools\"><block type=\"program_sections\"><mutation inputs=\"0\" calcs=\"0\" outputs=\"0\"><\/mutation><\/block><category name=\"Constants\" colour=\"#5b67a5\"><block type=\"math_number\"><field name=\"NUM\">0<\/field><\/block><block type=\"text\"><field name=\"TEXT\"><\/field><\/block><block type=\"math_constant\"><field name=\"CONSTANT\">PI<\/field><\/block><block type=\"logic_boolean\"><field name=\"BOOL\">TRUE<\/field><\/block><block type=\"logic_null\"><\/block><\/category><category name=\"Input\/Output\" colour=\"#5ba58c\"><block type=\"text_print\"><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">abc<\/field><\/shadow><\/value><\/block><block type=\"text_prompt2\"><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">abc<\/field><\/shadow><\/value><\/block><block type=\"text_display\"><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">abc<\/field><\/shadow><\/value><\/block><block type=\"text_write\"><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">abc<\/field><\/shadow><\/value><\/block><\/category><category name=\"Arithmetic\" colour=\"#5b67a5\"><block type=\"text_join\"><mutation items=\"2\"><\/mutation><\/block><block type=\"math_arithmetic\"><field name=\"OP\">ADD<\/field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">1<\/field><\/shadow><\/value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">1<\/field><\/shadow><\/value><\/block><\/category><category name=\"Relational\" colour=\"#5b80a5\"><block type=\"logic_compare\"><field name=\"OP\">EQ<\/field><\/block><\/category><category name=\"Logical\" colour=\"#5b80a5\"><block type=\"logic_operation\"><field name=\"OP\">AND<\/field><\/block><block type=\"logic_negate\"><\/block><\/category><category name=\"Conditional\" colour=\"#5b80a5\"><block type=\"controls_if\"><\/block><block type=\"controls_switch\"><\/block><\/category><category name=\"Iteration\" colour=\"#5ba55b\"><block type=\"soit_pc_while_do\"><\/block><block type=\"soit_pc_do_while\"><\/block><block type=\"controls_for\"><field name=\"VAR\">i<\/field><value name=\"FROM\"><shadow type=\"math_number\"><field name=\"NUM\">1<\/field><\/shadow><\/value><value name=\"TO\"><shadow type=\"math_number\"><field name=\"NUM\">10<\/field><\/shadow><\/value><value name=\"BY\"><shadow type=\"math_number\"><field name=\"NUM\">1<\/field><\/shadow><\/value><\/block><\/category><category name=\"Variables\" colour=\"#a55b80\" custom=\"VARIABLE\"><\/category><category name=\"Functions\" colour=\"#995ba5\" custom=\"PROCEDURE\"><\/category><\/category><\/xml>"}]]></uiparameters>
    <attachments>0</attachments>
    <attachmentsrequired>0</attachmentsrequired>
    <maxfilesize>10240</maxfilesize>
    <filenamesregex></filenamesregex>
    <filenamesexplain></filenamesexplain>
    <displayfeedback>0</displayfeedback>
    <giveupallowed>0</giveupallowed>
    <prototypeextra></prototypeextra>
    <testcases>
    </testcases>
  </question>

</quiz>