• driving_crooner
    link
    fedilink
    arrow-up
    7
    arrow-down
    3
    ·
    3 months ago

    Is that python? If it’s, thank you, finally learned how to format text in a way that can be read on the script and in the execution.

    • zaphod@sopuli.xyz
      link
      fedilink
      arrow-up
      9
      ·
      3 months ago

      As the other comments have already said it’s not Python. Not sure what you mean with text formatting, do you mean that it’s multiple strings that are concatenated using +? You don’t need the + in Python, you can do

      some_function(
          "part one of really long string"
          " part two of really long string"
      )
      

      Which is identical to

      some_function("part one of really long string part two of really long string")
      
      • driving_crooner
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        I was thinking on trying it. Need to see how it works with f formatting.