Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 32 additions & 2 deletions pretext/SimplePythonData/Input.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,36 @@ print ( type(n) )
</choice>
</choices>
</exercise>
<exercise runestone="ca_id_ints"/>
<exercise runestone="ca_id_str"/>
<exercise label="test_question2_7_2">

<statement>
<p>Click on all of the variables of type `int` in the code below</p>
</statement>
<areas>
<cline><area correct="no">seconds</area> = input("Please enter the number of seconds you wish to convert")</cline>
<p></p>
<cline><area>hours</area> = int(<area correct="no">seconds</area>) // 3600</cline>
<cline><area>total_secs</area> = int(<area correct="no">seconds</area>)</cline>
<cline><area>secs_still_remaining</area> = <area>total_secs</area> % 3600</cline>
<cline>print(<area>secs_still_remaining</area>)</cline>


</areas>
</exercise>
<exercise label="test_question2_7_3">

<statement>
<p>Click on all of the variables of type `str` in the code below</p>
</statement>
<areas>
<cline><area>seconds</area> = input("Please enter the number of seconds you wish to convert")</cline>
<p></p>
<cline><area correct ="no">hours</area> = int(<area>seconds</area>) // 3600</cline>
<cline><area correxct="no">total_secs</area> = int(<area>seconds</area>)</cline>
<cline><area correct="no">secs_still_remaining</area> = <area correct="no">total_secs</area> % 3600</cline>
<cline>print(<area correct ="no">secs_still_remaining</area>)</cline>


</areas>
</exercise>
</section>