w="world" for n in range(100): r="" while n:r=[w,"hello",w+"!"][n%3]+" "+r;n/=3 print r[:-1]or w
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page