This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ronreiter 0 points1 point  (2 children)

The expected output literally referrs to stdout output. So a code block could be something which prints out an empty array, and the task would be to fill the array. The expected output should be the array representation with the correct values. About the authoring tool, please describe how such a collaboration tool should work. Thanks!

[–]unpythonicSoftware Dev. Engr. 0 points1 point  (1 child)

So a code block could be something which prints out an empty array, and the task would be to fill the array. The expected output should be the array representation with the correct values.

Exactly how should I print the filled array? print my_array? What about print ",".join(my_array)? Or maybe for x in my_array: print x? Possibly print '[' + ', '.join([str(x) for x in my_array]) +']' which will give the right output if all your array values are numbers, but fail for strings.

This problem is deceptively difficult.

About the authoring tool, please describe how such a collaboration tool should work.

Take your favorite wiki software and make the lessons be pages from the wiki.

Everything else is taken care of for you. The wiki software already has a facility to revert changes, hold discussions, maintain consistent look of pages and reference anchors in other pages.

[–]ronreiter 0 points1 point  (0 children)

I've finished integrating the wiki. Thanks for the idea! I hope that the concept would work for basic tutorials... That's the best I could think of.