How to handle a one line for loop without putting it in a List?
<p>Maybe the question is a bit vague, but what I mean is this code:</p>

<pre><code>'livestream' : [cow.legnames for cow in listofcows]
</code></pre>

<p>Now the problem is cow.legnames is also a list so I will get a list in a list when I try to return it with Json. How should I make it to return a single list.</p>

<p>This is the json that would be returned.</p>

<pre><code>'livestream' : [['blue leg', 'red leg']]
</code></pre>

<p>I hope the code explains what my question is.</p>
