Skip to content

Commit 0d4acfe

Browse files
author
Philip Guo
committed
modified question.html prototype layout
1 parent ec752f8 commit 0d4acfe

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

edu-python-questions.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2222
/* styles for Online Python Tutor questions site */
2323

2424
#questionsHeaderPane {
25-
text-align: center;
26-
margin-bottom: 30px;
25+
text-align: left;
26+
margin-bottom: 10px;
27+
width: 650px;
28+
}
29+
30+
.questionsHeaderStmt {
31+
margin-bottom: 5px;
2732
}

question.html

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,37 @@
5454
<body>
5555

5656

57+
<center>
58+
5759
<div id="questionsHeaderPane">
5860

59-
<div id="ProblemStatement"><b>Problem</b>: Write a function that
61+
<div class="questionsHeaderStmt" id="ProblemStatement"><b>Problem</b>: Write a function that
6062
reverses a list in-place.</div>
6163

62-
<div id="HintStatement"><a href="#" id="showHintHref">Show hint</a></div>
64+
<div class="questionsHeaderStmt" id="ExampleStatement"><b>Example</b>: A list [INSERT LIST DIAGRAM]
65+
should be mutate to look like [INSERT LIST DIAGRAM]</div>
66+
67+
<div class="questionsHeaderStmt" id="HintStatement"><a href="#" id="showHintHref">Show hint</a></div>
6368

64-
<div id="SolutionStatement"><a href="#" id="showSolutionHref">Show solution</a></div>
69+
<div class="questionsHeaderStmt" id="SolutionStatement"><a href="#" id="showSolutionHref">Show solution</a></div>
6570

6671
</div>
6772

73+
</center>
74+
6875

6976
<div id="pyInputPane">
7077

71-
<textarea id="pyInput" cols="55" rows="20" wrap="off"></textarea>
78+
<textarea id="pyInput" cols="60" rows="18" wrap="off">
79+
def reverse(lst):
80+
# fill in your code here
81+
</textarea>
7282

7383
<p/>Test code:<br/>
74-
<textarea id="pyInput" cols="55" rows="4" wrap="off"></textarea>
84+
<textarea id="pyInput" cols="60" rows="4" wrap="off">
85+
input = ['a', 'b', 'c', 'd', 'e']
86+
reverse(input)
87+
</textarea>
7588

7689
<p>
7790

0 commit comments

Comments
 (0)