How do you divide each element in a list by an int?
<p>I just want to divide each element in a list by an int.</p>

<pre><code>myList = [10,20,30,40,50,60,70,80,90]
myInt = 10
newList = myList/myInt
</code></pre>

<p>This is the error:</p>

<pre><code>TypeError: unsupported operand type(s) for /: 'list' and 'int'
</code></pre>

<p>I understand why i am receiving this error. But frustrated why i can't locate a solution.</p>

<p>Also tried:</p>

<pre><code>newList = [ a/b for a, b in (myList,myInt)]
</code></pre>

<p>Error:</p>

<pre><code>ValueError: too many values to unpack
</code></pre>

<p>Expected Result:</p>

<pre><code>newList = [1,2,3,4,5,6,7,8,9]
</code></pre>

<p>Thanks in advance </p>

<p>EDIT:</p>

<p>The following code gives me my expected result</p>

<pre><code>newList = []
for x in myList:
  newList.append(x/myInt)
</code></pre>

<p>but is there an easier/faster way to do this?</p>
