2424
2525< head >
2626
27- < title > Online Python Tutor: Learn and practice programming from your web browser</ title >
27+ < title > Online Python Tutor: Learn and practice programming in your web browser</ title >
2828
2929<!-- jQuery 1.6.0 -->
3030
5656< div class ="titlePane ">
5757
5858< h1 > Online Python Tutor</ h1 >
59- < h2 > Learn and practice Python programming from your web browser</ h2 >
59+ < h2 > Learn and practice Python programming in your web browser</ h2 >
6060
6161</ div >
6262
@@ -82,7 +82,7 @@ <h2>Python by writing code and visualizing execution</h2>
8282z = ["Alice", "Bob", "Charlie"]
8383</ pre >
8484
85- < p > will be visualized as the following diagram, which properly shows
85+ < p > will be visualized as the following HTML diagram, which properly shows
8686aliasing relationships:</ p >
8787
8888< center >
@@ -106,11 +106,13 @@ <h2>programming problems by writing Python code</h2>
106106executing on a series of graded test inputs, and showing what tests
107107passed and failed.</ p >
108108
109+ < center >
109110< img src ="grading-375.png "/>
111+ </ center >
110112
111- < p > The above screenshot shows passed/ failed tests. The user can click
112- on the "Debug me" button besides one of the sad faces to debug why the
113- program failed on a particular test.</ p >
113+ < p > The above screenshot shows passed and failed tests. The user can
114+ click on the "Debug me" button besides one of the sad faces to debug why
115+ the program failed on a particular test.</ p >
114116
115117< p > Here are some sample practice problems:</ p >
116118
@@ -130,12 +132,12 @@ <h1>Debug</h1>
130132< h2 > existing programs that almost work properly</ h2 >
131133
132134< p > Using the Online Python Tutor's bidirectional single-stepping and
133- data structure visualization technologies , students can practice
135+ data structure visualization capabilities , students can practice
134136debugging, an important skill which is rarely covered in web-based
135137programming problems.</ p >
136138
137- < p > They can solve problems like, < i > "Change at most 2 lines of code
138- to make this almost-correct Python program work properly."</ i > Here are
139+ < p > They can work on problems like, < i > "Change at most 2 lines of code to
140+ make this almost-correct Python program work properly."</ i > Here are
139141some sample debugging problems:</ p >
140142
141143< ul >
@@ -154,9 +156,9 @@ <h1>Optimize</h1>
154156< h2 > existing programs to run using fewer instructions</ h2 >
155157
156158< p > Students can practice refactoring already-correct programs to run
157- faster and using fewer executed instructions.</ p >
159+ faster and execute fewer instructions.</ p >
158160
159- < p > They can solve problems like, < i > "Optimize this program so that it
161+ < p > They can work on problems like, < i > "Optimize this program so that it
160162terminates correctly after running less than 50 lines of Python
161163code."</ i > Here are some sample optimization problems:</ p >
162164
@@ -175,13 +177,20 @@ <h2>existing programs to run using fewer instructions</h2>
175177< h1 > Create</ h1 >
176178< h2 > new practice problems in plain text format</ h2 >
177179
178- < p > Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
179- eiusmod tempor incididunt ut labore et dolore magna aliqua. </ p >
180+ < p > Teachers can easily create new practice problems by writing them in a
181+ lightweight plain text format. For example, < a
182+ href ="questions/reverse.txt "> reverse.txt</ a > provides the specification
183+ for the < a href ="question.html?reverse "> Reverse list</ a > problem.</ p >
180184
181- < p > Questions are specified in a simple textual format, e.g.,: < a
182- href ="questions/reverse.txt "> reverse.txt</ a > .</ p >
185+ < p > The problem specification format allows constraints like < i > "code
186+ diffs must be less than N lines"</ i > (used for debugging problems) and
187+ < i > "tests must terminate in at most M executed Python lines"</ i > (used
188+ for optimization problems).</ p >
183189
184- < p > COMING SOON: semantic constraints on execution</ p >
190+ < p > I plan to add support for semantic constraints like < i > "don't allow
191+ the program to create any auxiliary data structures"</ i > , which could be
192+ used for problems like < i > "merge these two lists in-place without
193+ creating any new temporary lists"</ i > .</ p >
185194
186195</ div >
187196
@@ -192,7 +201,7 @@ <h2>new practice problems in plain text format</h2>
192201< div id ="footer ">
193202
194203< p > This application was created by < a
195- href ="http://www.stanford.edu/~pgbovine/academic.htm "> Philip Guo</ a > , a
204+ href ="http://www.stanford.edu/~pgbovine/ "> Philip Guo</ a > , a
196205Stanford Computer Science Ph.D. student and Python enthusiast.</ p >
197206
198207< p >
@@ -203,7 +212,7 @@ <h2>new practice problems in plain text format</h2>
203212</ p >
204213
205214< p >
206- Copyright © 2010-2011 < a href ="http://www.stanford.edu/~pgbovine/ "> Philip J. Guo</ a > . All rights reserved.
215+ Copyright © 2010-2011 < a href ="http://www.stanford.edu/~pgbovine/ "> Philip Guo</ a > . All rights reserved.
207216</ p >
208217
209218</ div >
0 commit comments