By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,190 Members | 789 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,190 IT Pros & Developers. It's quick & easy.

Happy New Year in Python and other languages

P: n/a
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.
true=False
if true :
then
echo -e +"\bHappy New Year!"
else :
print "Happy New Year!"; fi=0 #*/
fi
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.