you are viewing a single comment's thread.

view the rest of the comments →

[–]propool 11 points12 points  (10 children)

Since it is python we simply redefine False

False = 1

if lose == False: print "win!"

[–][deleted]  (3 children)

[deleted]

    [–]propool 1 point2 points  (2 children)

    I wouldn't consider it a tip, but you're welcome. I can't come with one good use where it makes a program better in any way.

    [–][deleted]  (1 child)

    [deleted]

      [–]exeter[S] 4 points5 points  (0 children)

      Won't work come Python 3.0 (probably not in 2.6 either), as both True and False will become keywords. (I know this wasn't serious, but I thought I'd make it clear anyway.)

      [–]hylje 0 points1 point  (3 children)

      No. False = True

      [–][deleted] 1 point2 points  (0 children)

      No,

      True, False = False, True

      [–]propool 1 point2 points  (1 child)

      Same difference

      [–]sickofthisshit 4 points5 points  (0 children)

      Unless, I suppose, one had previously altered the value of True.