title: How do you divide each element in a list by an int?
body: <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 I am frustrated that I can't find 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><br><strong>EDIT:</strong></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>