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 JohnOZ
import random
def i_love_python():
programming_languages = ['C++','C','Java','Objective-C','C#','JavaScript','Ruby','PHP','Python']
while random.choice(programming_languages) != 'Python':
print('Where is my Python?')
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!"
March 29, 2015
Comments: