[Edu-sig] online coding?

Andre Roberge andre.roberge at gmail.com
Wed Mar 20 02:35:29 CET 2013


On Tue, Mar 19, 2013 at 10:18 PM, Karine Laidley <K.Laidley at amsacs.org>wrote:

>  Dear Python users,****
>
> ** **
>
> I wanted to check with you if you know of a good site that allows students
> to submit Python code to be checked for correctness. I know there is a
> codebat site but I found it limited in what it offers. Ideally, I want to
> offer students problems to solve from simple print statements, to
> calculations, to formatting, to conditionals and repetitions… even better,
> if we can actually create our own problem sets and solutions to be checked
> against, that would be amazing.****
>
> **
>
One solution, which might be just a bit more involved than you would like
would be to use Crunchy.   (http://code.google.com/p/crunchy)

Crunchy takes a normal html page, possibly with some python code in it, and
transforms it into an interactive session within a browser.  If you
download crunchy and start it by typing "python crunchy.py" it should open
a browser window and display an html page documenting its various features.
 If it does not open a browser window/tab, type in
http://127.0.0.1:8001/index.html as the address   (or note the address in
the terminal window from which you started it ... assuming you do start it
that way).

Assuming you do this ... have a look at either the "DocTest" or "UnitTest"
menu item on the left.    You can embed code samples that will do exactly
what you want, either using the python doctest module or the unittest one.
   The documentation explains how to do this ... but the simplest way might
be to copy the existing html file and modify it.

If you want to see a video of it first, I can probably find a link for you.

What it would require is either:
1. that you set up crunchy on a local server that the students can connect
to - I've never done it myself but I know that a couple of people managed
to do it.
2. that students have access to a copy of Crunchy on their computer AND
that you have some website on which you could put the html files with the
problem sets you want to have.

If you do try it and have questions, feel free to email me directly.

André

>  **
>
> Any thoughts?****
>
> ** **
>
> Thank you,****
>
> ** **
>
> Karine Laidley****
>
> ** **
>
> Computer Science Teacher (6th and 7th grade)****
>
> AMSA Charter School****
>
> Marlborough, MA****
>
> (508)597-2400****
>
> k.laidley at amsacs.org****
>
> ** **
>
> _______________________________________________
> 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/20130319/a53244c1/attachment.html>


More information about the Edu-sig mailing list