Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for I Love Python! by andraz.gruden.90
def i_love_python():
import random
# The big bang
universe = []
people = ["I", "You", "We", "They"]
myself = people[0]
universe.append("Hate")
for i in range(1000):
universe.append("love")
# Then god created Programing languages
programming_languages = ["Autocode", "LISP", "COBOL", "CPL", "Pascal", "C", "Sql", "Perl", "Mathematica", "Haskell",
"Python!", "VB", "Ruby", "Java", "Delphi", "PHP", "C#", "VB.net", "Dart", "Swift"]
favuorite_language=[]
universe.remove("Hate")
for i in programming_languages:
if i == "Python!":
favuorite_language.append(i)
outcome = myself +" "+ random.choice(universe) +" "+ favuorite_language[0]
return(str(outcome))
if __name__ == '__main__':
#These "asserts" using only for self-checking and not necessary for auto-testing
assert i_love_python()
"""And then all the Pytonistas gave me this addvice:
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
Zen of Python"""
Jan. 27, 2015