Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For questions about the formatting on Stack Overflow; how to use it and when to use it.
3
votes
0
answers
367
views
What is the recommended way to format the output of some code? [duplicate]
As per title, consider some code which produces some output to STDOUT, what is the recommended way of formatting it.
For example, in Python, you could write:
print('Hello World!') … Is there a better way of formatting the output of some code? What is the recommended way?
Given the frequency of this, I think there should be a standard way of formatting it. …