Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Happy New Year in Python and other languages

Reply
Thread Tools

Happy New Year in Python and other languages

 
 
Rob Hughes
Guest
Posts: n/a
 
      01-01-2004
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 <(E-Mail Removed)>, December 2003.
true=False
if true :
then
echo -e +"\bHappy New Year!"
else :
print "Happy New Year!"; fi=0 #*/
fi
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Merry Christmas and a happy new year! Thomas Ploch Python 0 12-24-2006 04:22 PM
Merry Christmas and a Happy New Year [Anon] R|A|A|A Computer Security 0 12-23-2006 05:22 PM
Happy New Year and Merry Christmas! _cin_ C Programming 0 12-31-2005 04:44 PM
...And a happy new year btw (NT :) Christos TZOTZIOY Georgiou Python 0 12-31-2003 11:55 PM



Advertisments