Tuesday 1 May 2012

Pycode history, why moodle and the changes to pypy

Last year the only type of questions pycode supported were of the form "write a function blah(x, y, z) that takes parameters .... and returns .... ". pycode was inspired by the excellent Python drill site http://codingbat.com/. But i wanted the integration with Moodle so I could set different question types and also record marks. I also found the write-a-function question a bit limiting, e.g. we couldn't do anything with files or classes or functions that did I/O or anything requiring any sort of state. So what you have is version 2, which permits "helloWorld", for example.

You can get plenty of ideas for 'write-a-function' questions from codingbat.com.

No comments: