• Python conventions


I originally posted this in the House Password task, but it's a more generic thing.

For a few tasks I have had my tests fail because I use tuples to represent coordinates instead of lists as in the asserts, leverage python's bool behavior (not returning True of False but something that evaluates to True or False).

This is not the python way - even if, for some reason, you'd require the code to return exactly given datatype (list) it would be nice to choose one according to python conventions - for example tuples for immutable pairs of coordinates.

What do you think?