[ANN] Free Python tutorial with exercises, cscx.org

Rudy Matela rudy at matela.com.br
Tue Apr 6 14:39:34 EDT 2021


On Fri, Apr 02, 2021 at 05:00:40AM +1100, Chris Angelico wrote:
> On Fri, Apr 2, 2021 at 2:14 AM Rudy Matela <rudy at matela.com.br> wrote:
> > Computer Science by Example https://cscx.org/ is a collection of short
> > programming exercises.  The site can automatically grade students'
> > solutions and it accepts submissions in Python.
> 
> What versions of Python does it support? The setup page is not clear.

It supports Python 2 and 3.  When you submit solutions to the exercises,
the system looks at the hashbang (#!) to check whether you are using
Python 2 or 3:

	#!/usr/bin/env python2

or

	#!/usr/bin/env python3

When none of these are present it defaults to Python 3.

The examples in the tutorial section (https://cscx.org/programming-basics)
are done so that they are compatible with both versions of the language.
So if you have either 2 or 3, you'll be able to follow the tutorial and
exercises.

I'll add this clarification in the setup section and the FAQ later this
week.


More information about the Python-list mailing list