Re:Coderloop is the coder's gym
by bmelton on Tuesday November 09, 2010 @09:07AM
(#1886413)
Yes, this. I was happily coding and kept failing the (very) simple "Shazoo" challenge because either 2.3 or your interpreter doesn't understand the "if __name__ == '__main__'" logic for Python portability. I'm ashamed to say that it took three tries before I just took that out and submitted a program that, while inferior, passed.
[ Parent
| on HN ]
I'm sorry for that, we're going to add support for 2.7 very soon!
Upon further reflection, it may be that you're loading the code dynamically or something (and not just running it as a command line application) or something that caused the __main__ not to trigger.
Once I understood the constraint, I was fine. It's a neat little app, and for somebody who's never had an actual job as a programmer, some of these exercises I feel are things that I should at least know the pattern.
I'm digging it.