Happy New Year in Python and other languages

Discussion in 'Python' started by Rob Hughes, Jan 1, 2004.

  1. Rob Hughes

    Rob Hughes Guest

    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 <>, December 2003.
    true=False
    if true :
    then
    echo -e +"\bHappy New Year!"
    else :
    print "Happy New Year!"; fi=0 #*/
    fi
    Rob Hughes, Jan 1, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christos TZOTZIOY Georgiou

    ...And a happy new year btw (NT :)

    Christos TZOTZIOY Georgiou, Dec 31, 2003, in forum: Python
    Replies:
    0
    Views:
    266
    Christos TZOTZIOY Georgiou
    Dec 31, 2003
  2. Thomas Ploch

    Merry Christmas and a happy new year!

    Thomas Ploch, Dec 24, 2006, in forum: Python
    Replies:
    0
    Views:
    315
    Thomas Ploch
    Dec 24, 2006
  3. _cin_

    Happy New Year and Merry Christmas!

    _cin_, Dec 31, 2005, in forum: C Programming
    Replies:
    0
    Views:
    341
    _cin_
    Dec 31, 2005
  4. _cin_
    Replies:
    5
    Views:
    980
  5. ilogic consulting
    Replies:
    0
    Views:
    404
    ilogic consulting
    Dec 25, 2008
Loading...

Share This Page