[Snark] Python "only passes the tests"
0 at psycoti.ca
Sat Nov 17 17:28:47 UTC 2018
> == piglatin.py ==
> #!/usr/bin/env python
> import sys
> if sys.argv == "apple":
> print "appleay"
> if sys.argv == "ear":
> print "earay"
Not much to say about this one.
It _does_ pass the tests.
It's not bad *code*, but it is a bad entry to our challenge.
I guess they could have used `elif` instead of repeated ifs to make the code
faster, so I guess that's a way it's bad.
Blog post over! We did it!
Nope, not a winner.
I do appreciate the attempt, though.
More information about the Snark