[Edu-sig] Fwd: [Only Python] 5/14/2006 09:29:20 AM
Andre Roberge
andre.roberge at gmail.com
Mon May 15 03:15:13 CEST 2006
On 5/14/06, kirby urner <kirby.urner at gmail.com> wrote:
>
> > There's a bit more to it than what I wrote above, but it should give the
> > flavor.
> >
> > André
> >
>
> Thanks. So I could maybe have a property associate with an
> interpreter box, such that returned output would be recognized as
> "correct" (e.g. 42) or not. Depending on the output, the next page
> might be different.
At present, only standard "doctest" are run with an "expected" output. When
run successfully, a "custum" message appears. It would be fairly easy to
change this so that a link to a new page appears upon successful
completion. Or, it might be modified so that it links directly to the next
page...
Note that the limitation to doctests should not be a big limitation in
practice. Usually, students will be ask to write a function that produces a
certain result when called. So, in the case you mention, the doctest might
be:
"""
>>> print student_function()
42
"""
Until the student writes a function (named student_function!) that returns
42, no link to the next page would be present on the page.
----------
I see the interpreter prompt as an invitation to explore, rather than a
testing environment.
If you have some "mock tutorial" (i.e. a series of exercises) that you can
give me (perhaps off-list), I could see if Crunchy Frog could (as is)
produce the type of tutorial that you'd want. If not, it could be the next
feature I implement ;-)
André
Kirby
> _______________________________________________
> Edu-sig mailing list
> Edu-sig at python.org
> http://mail.python.org/mailman/listinfo/edu-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/edu-sig/attachments/20060514/b93b8167/attachment-0001.htm
More information about the Edu-sig
mailing list