• 1 Post
  • 19 Comments
Joined 10 months ago
cake
Cake day: December 4th, 2023

help-circle








  • 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")