Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Happy New Year in Python and other languages (http://www.velocityreviews.com/forums/t326494-happy-new-year-in-python-and-other-languages.html)

Rob Hughes 01-01-2004 09:12 PM

Happy New Year in Python and other languages
 
I saw Vadim Antonov's "Happy New Year in 4 languages" program
(http://www.gnu.org/fun/jokes/happy-new-year.cfbC.html) and
thought I'd write a similar program using Python. Here it is:

#include <stdio.h>
#define fi int main(void){printf("Happy New Year!\n");return(0);}
#/* This code has the same effect in Python, C, C++, and bash.
# Written by Rob Hughes <rhughes@fastmail.fm>, December 2003.
true=False
if true :
then
echo -e +"\bHappy New Year!"
else :
print "Happy New Year!"; fi=0 #*/
fi


All times are GMT. The time now is 11:22 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.