If someone answers a question in a way that includes erroneous info, but contains something else -- such as code -- which does present an answer to the question*, is it right to accept that answer (assuming there are no better ones given)?
The one I'm thinking about currently is:
https://stackoverflow.com/a/36455499/5202687
Which does answer some aspects of the question, but also contains exposition which seems to be inaccurate and could be potentially misleading were it accepted.
Anyone got opinions?
*though sometimes perhaps a partial answer
None
, though. If you are trying to printphilips_trousers.append(...)
, that won't work because.append()
does the appending in-place and returnsNone
. If you have put my code in a function and tried to print the returns of the function, perhaps you forgot thereturn philips_trousers
part. I would need your code to tell you what is going wrong.print philips_trousers
to the end (no indentation) to make it print. Oh, and if there's anything else, ask me in the comment section on my answer. Meta doesn't seem like a good place for it.