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 ZakkyR
from random import randrange
def make_char(char):
c = chr(randrange(0, 255))
return c if c == char else make_char(char)
def i_love_python():
return ''.join(list(map(make_char, list('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!"
Nov. 2, 2017