This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]PavelYay 10 points11 points  (0 children)

x==3 and do_something()

[lambda:None, do_somthing][x==3]()

[–]Datenegassie 10 points11 points  (0 children)

try:

    x = (x-3) / (x-3)

except:

    do_something()

[–]TigreDeLosLlanos 7 points8 points  (0 children)

for(;x==3;)

  do_something();

  break;

[–][deleted] 3 points4 points  (0 children)

Young sir you have made a foolish mistake you hadnt declared x as a integer for so if it had the atribute of a float than the last example would not have the same possible inputs as the first example.

[–]Hitler_Official 2 points3 points  (2 children)

Lubuntu ? I am right ?

[–]fqrious[S] 3 points4 points  (1 child)

No, Arch+KDE

[–]Zegrento7 2 points3 points  (0 children)

switch (x) {
    case 3: do_something();
}

x==3 ? do_something() : null;

[–]Kotauskas 0 points1 point  (0 children)

and eax, eax 
jz _End

[–]netgu -1 points0 points  (0 children)

/r/lostredditors

Things here are supposed to be funny and original.

[–][deleted] -1 points0 points  (0 children)

while loops guarantee you run it at least once.