- cross-posted to:
- bumba@boomer.casino
- python@programming.dev
- cross-posted to:
- bumba@boomer.casino
- python@programming.dev
You must log in or # to comment.
a = a ^ b b = a ^ b a = a ^ b
So you are asking the user to do it
Also don’t forget that int() only truncates the decimal and doesn’t round. This has fucked me over several times.
Never used Python but that’s hilarious.
Using an organic processor
Version 3 is disgusting.
I raise you
@lambda _: _() def result() -> int: global a; global b; a, b = b, a
hat tip to @sisyphean@programming.dev via Cursed Python