Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Three Reasons I Love Python solution in Clear category for I Love Python! by timio
def i_love_python():
"""
I love Python first and foremost because it is so clean and easy to read
(when written correctly). By reducing all of the 'boilerplate' (brackets,
semicolons, etc.) I can just focus on solving the problem set before me instead
of random language syntax. With the whitespace formatting of Python, code can
almost become a (self-documenting) story of what a program is doing.
I also appreciate all of the useful scientfic libraries written in
Python. I had a good deal of fun last year competing in the March Machine
Learning Mania competition on Kaggle.com using libraries like SciPy and NumPy.
Additionally, Python does a really good job of promoting modules (a weakness
of some other programming languages -- I'm looking at you Java). By promoting
a modular approach to programming, Python helps programmers focus on each module
having a single responsibility (which is really great for maintenance and
enhancement). A great example of a modular approach using Python is the Web framework Django
(check out their tutorial if you haven't had the chance -- you'll see what I mean).
In summation, I love Python because it is clean, useful, and modular;
three great reasons why you should love Python too!
"""
return "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!"
Dec. 12, 2014