469,934 Members | 2,589 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

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 <rh*****@fastmail.fm>, December 2003.
if true :
echo -e +"\bHappy New Year!"
else :
print "Happy New Year!"; fi=0 #*/
Jul 18 '05 #1
0 1258

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

220 posts views Thread by Brandon J. Van Every | last post: by
19 posts views Thread by KefX | last post: by
226 posts views Thread by Stephen C. Waterbury | last post: by
38 posts views Thread by kbass | last post: by
68 posts views Thread by Lad | last post: by
25 posts views Thread by abhinav | last post: by
35 posts views Thread by John Coleman | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.