When asking a question, how necessary is it to provide an attempt? Usually when I have a question for SO, I know right away that any solution I provide is going to be heavy-handed. For example, in this recent question, I didn't provide a solution attempt because I knew there'd be a one-liner out there and all of my ideas were pretty bad. Turns out Dan D. provided this:
l.sort(key=lambda v: (len(v.split('.')), v.split('.')))
I would have never arrived at this solution, and that's exactly what prompted me to ask the question.
In the future, is it better to provide an attempted solution even if the solution is poor? A lot of the time, I provided attempts seem interpreted as acts of good will.
Thanks