Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
KHTangent ( KHTangent@lemmy.world )  to Programmer Humor@lemmy.mlEnglish · 3 years ago

Swapping integers in Python

lemmy.world

message-square
5
link
fedilink
  • cross-posted to:
  • bumba@boomer.casino
  • python@programming.dev
63

Swapping integers in Python

lemmy.world

KHTangent ( KHTangent@lemmy.world )  to Programmer Humor@lemmy.mlEnglish · 3 years ago
message-square
5
link
fedilink
  • cross-posted to:
  • bumba@boomer.casino
  • python@programming.dev
  • abclop99 ( abclop99@beehaw.org ) 
    link
    fedilink
    English
    arrow-up
    6
    ·
    3 years ago
    a = a ^ b
    b = a ^ b
    a = a ^ b
    

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 3 users / day
  • 221 users / week
  • 336 users / month
  • 1.83K users / 6 months
  • 871 local subscribers
  • 43.7K subscribers
  • 1.25K Posts
  • 10.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) 
  • cat_programmer ( cat_programmer@lemmy.ml ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code