[Python] “Happy 2014!” Without numbers…

Happy 2014!

open terminal, run python and copy/paste:

[code autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”]print "Happy " + str(sum(map(ord,’Happy new year to you!’))) + "!"[/code]

have a good year.

2015 version:

[code autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”]print "Happy " + str(sum(map(ord,’Happy new year To you!!’))) + "!"[/code]

ref: codegolf

Alberto Pasca
Latest posts by Alberto Pasca (see all)