- cross-posted to:
- bumba@boomer.casino
- python@programming.dev
You must log in or register to comment.
abclop99 ( @abclop99@beehaw.org ) English6•1 year agoa = a ^ b b = a ^ b a = a ^ b
pewpew ( @pewpew@feddit.it ) English3•1 year agoSo you are asking the user to do it
Crackhappy ( @Crackhappy@lemmy.world ) English2•1 year agoNever used Python but that’s hilarious.
MyNameIsRichard ( @MyNameIsRichard@lemmy.ml ) English1•1 year agoUsing an organic processor
Jason Novinger ( @jnovinger@programming.dev ) English0•1 year agoI raise you
@lambda _: _() def result() -> int: global a; global b; a, b = b, a
hat tip to @sisyphean@programming.dev via Cursed Python