Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
More Than Words solution in Clear category for I Love Python! by John.Hammell
def i_love_python():
great_learning_environment = True or False
portfolio_development = True or False
checkio = great_learning_environment and portfolio_development
actively_developed = True or False
for_web_dev_and_more = True or False
clean_syntax = True or False
great_community = True or False
python = (actively_developed and for_web_dev_and_more and
clean_syntax and great_community)
more_than_words = (actively_developed*("I ") +
for_web_dev_and_more*("love ") +
clean_syntax*("Python") +
great_community*("!"))
if python and checkio: return more_than_words
"""
:-) 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!"
Oct. 1, 2015
Comments: