Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for I Love Python! by abe.dillon
def i_love_python():
"""
Well written Python code comes the closest to reading like english than
any other language I've encountered. It's beautiful and elegant. This
makes for codebases that are easy to debug and maintain and quick to
iterate upon.
Some may say that the performance penalty of choosing Python (a dynamic,
interpreted language) is too great for some problem spaces, however;
there is a saying in programing:
"Pre optimization is the root of all evil"
Choosing a programing language for speed is a form of pre-optimization.
Once you build a working solution to a problem in Python there are
dosens of ways to optimize critical paths to often achieve speeds
comparable to fast compiled languages like C.
This is why I love Python. It allows me to solve problems in a sane,
beautiful, and elegant manner.
"""
return " ".join(["I", "love", "Python!"])
if __name__ == '__main__':
#These "asserts" using only for self-checking and not necessary for auto-testing
assert i_love_python() == "I love Python!"
Feb. 2, 2015