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 BrianMcleod
def i_love_python():
"""
I love Python most because of the large number of libraries available for virtually
everything. What drew me to Python was the quality support for scientific calculations
and the rapid growth in support for Data Science. I like that it supports object oriented
coding while not demanding strong typing. I do find it a bit frustrating when I see some
of the idioms which are very terse and hard to understand (iterators and their use, lambda
functions which sometimes seem to magical, the large variations of slices). These are all
hard to learn, but very powerful once learned.
"""
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!"
July 31, 2018