SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
l_b_i@pawb.social to Furry Programmers@pawb.socialEnglish · 5 months ago

In python, single quotes or double quotes?

message-square
message-square
4
fedilink
4
message-square

In python, single quotes or double quotes?

l_b_i@pawb.social to Furry Programmers@pawb.socialEnglish · 5 months ago
message-square
4
fedilink
alert-triangle
You must log in or register to comment.
  • SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    6
    ·
    5 months ago

    Double quotes always. Any style guide that says otherwise is wrong. :C

    • l_b_i@pawb.socialOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 months ago

      pep is wrong then https://peps.python.org/pep-0008/#string-quotes

  • colourlesspony@pawb.social
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    5 months ago

    I had a look at the python style guide and it is up to the user to pick one. I use double quotes because that what I learned and never felt the need to change it.

    • l_b_i@pawb.socialOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 months ago

      I’m in the habit of single quotes. Don’t really know where it came from, but it also doesn’t require shift, so I’m going to say its easier. It really messes me up when I switch to C.

Furry Programmers@pawb.social

furprogs@pawb.social

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: !furprogs@pawb.social

English-language general programmers community

Please treat pawb.social’s rules as though they were the rules of this community, even if you’re posting from another instance!

Visibility: Public
globe

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

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 13 users / 6 months
  • 4 local subscribers
  • 360 subscribers
  • 37 Posts
  • 84 Comments
  • Modlog
  • mods:
  • mayoaddict@pawb.social
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org