lemmyjan
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 6 days ago

Modern Programming

lemmy.zip

message-square
12
link
fedilink
7

Modern Programming

lemmy.zip

Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 6 days ago
message-square
12
link
fedilink
  • entropicdrift@lemmy.sdf.org
    link
    fedilink
    arrow-up
    1
    ·
    6 days ago
    print("odd" if num % 2 else "even")
    

    That’s the native python version, for those curious

    • DreadPirateShawn@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      1
      ·
      6 days ago

      The ternary syntax is really my only real gripe with python design – putting the conditional BETWEEN the true and false values feels so very messy to me.

    • Kaboom@reddthat.com
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      6 days ago

      Why is the return first?

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 649 users / day
  • 2.79K users / week
  • 2.83K users / month
  • 2.83K users / 6 months
  • 1 local subscriber
  • 24.3K subscribers
  • 92 Posts
  • 304 Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org