Hacker News new | ask | show | jobs
by ackdesha 5237 days ago
I like the idea, but what version of Python is supported? It seems that some operations are not supported. On the first challenge it didn't like the `sorted` built-in or allow iteration over a str object. I ended up solving the challenge, but in a way that I would never use in real application, i.e., not idiomatic Python. It should be clearer what language features are allowed.
2 comments

It didn't like the xrange function. Also doesn't seem to like the generator expressions.
It doesn't seem to like the map function either. List comprehensions, which seem to work, could be used instead but it would be nice to know which features are disabled/not supported before starting to code.
List comprehensions worked but reduce did not. Had to resort to for loops.