#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    78
    Rep Power
    2

    Doing 1 +1 in the most incomprehensible way.(forum game)


    Bring out your most incomprehensible one-liner you can find for adding one and one together and printing it

    RULE 1: has to be a one-liner
    RULE 2: no semicolons allowed
    RULE 3: you can't use the same function twice

    Example:
    Code:
    print(eval("+".join([str(xrange(1,2)[0]), chr(ord("1"))])))
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Location
    /dev/null
    Posts
    163
    Rep Power
    19
    He he.. though not incomprehensible to an experienced eye, here's one:

    Code:
    print(int(len(str('x'.replace('x','x'))))+[0,ord('\x01')][hex(0).isalnum()])
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2005
    Posts
    606
    Rep Power
    65
    Simple stuff ...
    Code:
    print(True + True)
    or
    Code:
    print(('a'=='a') + ('b'=='b'))
    or
    Code:
    print((ord('vupo'[0]) - ord('vupo'[1])) + (ord('vupo'[2]) - ord('vupo'[3])))

    Comments on this post

    • noobie1000 disagrees : The last one uses the ord function multiple times. Against the game rule :-D
    Last edited by Dietrich; June 13th, 2013 at 04:38 PM.
    Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    194
    Rep Power
    2
    My asinine attempt:
    python Code:
    print((int(sum((-1)**(n+1)/pow(2.0,n) for n in range(1,1000))*float(24))>>3)
          + bool(ord(str(any((dict(what=list([all(zip(map(bin,set(((5),))),{1}))])),))<<100)[0])))

    Put on two lines for... ahem... readability .
    -Mek

    Comments on this post

    • noobie1000 agrees : Ha ha ha! Good one mate! :-D
    Last edited by Mekire; June 13th, 2013 at 10:23 PM.

IMN logo majestic logo threadwatch logo seochat tools logo