The Perfect SolutionJPDev@programming.dev to Programmer Humor@programming.dev – 676 points – 10 months ago81Post a CommentPreviewYou are viewing a single commentView all commentsShow the parent commentIt allows you to add internal linebreaks.Downside is that it includes your indentation whitespace, though I doubt chatgpt would care about that, as I'd imagine it gets discarded when it's tokenized, but it's still good to keep in mind when using " " ".dedent() can help with that.That's a pretty clean looking solution. There are a few others as well, but yours seems better, and it's in the standard lib to boot!
It allows you to add internal linebreaks.Downside is that it includes your indentation whitespace, though I doubt chatgpt would care about that, as I'd imagine it gets discarded when it's tokenized, but it's still good to keep in mind when using " " ".dedent() can help with that.That's a pretty clean looking solution. There are a few others as well, but yours seems better, and it's in the standard lib to boot!
Downside is that it includes your indentation whitespace, though I doubt chatgpt would care about that, as I'd imagine it gets discarded when it's tokenized, but it's still good to keep in mind when using " " ".dedent() can help with that.That's a pretty clean looking solution. There are a few others as well, but yours seems better, and it's in the standard lib to boot!
dedent() can help with that.That's a pretty clean looking solution. There are a few others as well, but yours seems better, and it's in the standard lib to boot!
That's a pretty clean looking solution. There are a few others as well, but yours seems better, and it's in the standard lib to boot!
It allows you to add internal linebreaks.
Downside is that it includes your indentation whitespace, though I doubt chatgpt would care about that, as I'd imagine it gets discarded when it's tokenized, but it's still good to keep in mind when using " " ".
dedent() can help with that.
That's a pretty clean looking solution. There are a few others as well, but yours seems better, and it's in the standard lib to boot!