@[email protected] to Programmer [email protected]English • 1 year agoSwapping integers in Pythonlemmy.worldimagemessage-square2arrow-up110arrow-down10cross-posted to: [email protected]
arrow-up110arrow-down1imageSwapping integers in Pythonlemmy.world@[email protected] to Programmer [email protected]English • 1 year agomessage-square2cross-posted to: [email protected]
minus-squareJason NovingerlinkfedilinkEnglish1•1 year agoI raise you @lambda _: _() def result() -> int: global a; global b; a, b = b, a hat tip to @[email protected] via Cursed Python
I raise you
@lambda _: _() def result() -> int: global a; global b; a, b = b, a
hat tip to @[email protected] via Cursed Python