Getting every odd variable in a list?
<p>If I make a list in Python and want to write a function that would return only odd numbers from a range 1 to x how would I do that?</p>

<p>For example, if I have list [1, 2, 3, 4] from 1 to 4 (4 ix my x), I want to return [1, 3].</p>
