Skip to content

Commit 1a374ed

Browse files
committed
Resolves Issue #235
1 parent 41bd1ea commit 1a374ed

1 file changed

Lines changed: 32 additions & 2 deletions

File tree

pretext/SimplePythonData/Input.ptx

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,36 @@ print ( type(n) )
9595
</choice>
9696
</choices>
9797
</exercise>
98-
<exercise runestone="ca_id_ints"/>
99-
<exercise runestone="ca_id_str"/>
98+
<exercise label="test_question2_7_2">
99+
100+
<statement>
101+
<p>Click on all of the variables of type `int` in the code below</p>
102+
</statement>
103+
<areas>
104+
<cline><area correct="no">seconds</area> = input("Please enter the number of seconds you wish to convert")</cline>
105+
<p></p>
106+
<cline><area>hours</area> = int(<area correct="no">seconds</area>) // 3600</cline>
107+
<cline><area>total_secs</area> = int(<area correct="no">seconds</area>)</cline>
108+
<cline><area>secs_still_remaining</area> = <area>total_secs</area> % 3600</cline>
109+
<cline>print(<area>secs_still_remaining</area>)</cline>
110+
111+
112+
</areas>
113+
</exercise>
114+
<exercise label="test_question2_7_3">
115+
116+
<statement>
117+
<p>Click on all of the variables of type `str` in the code below</p>
118+
</statement>
119+
<areas>
120+
<cline><area>seconds</area> = input("Please enter the number of seconds you wish to convert")</cline>
121+
<p></p>
122+
<cline><area correct ="no">hours</area> = int(<area>seconds</area>) // 3600</cline>
123+
<cline><area correxct="no">total_secs</area> = int(<area>seconds</area>)</cline>
124+
<cline><area correct="no">secs_still_remaining</area> = <area correct="no">total_secs</area> % 3600</cline>
125+
<cline>print(<area correct ="no">secs_still_remaining</area>)</cline>
126+
127+
128+
</areas>
129+
</exercise>
100130
</section>

0 commit comments

Comments
 (0)