title: how to get the output of input list, as a list using a formula
body: <p>i need to print a solution list for the input list using the below formula,
  this is the code:</p>
  <pre><code>sub=[1,2,3,4,5,6,7]
  a=[]
  
  
  
  for i in sub:
       def res(i):(sub/12)*100 #this is the formula
       a.append(res(i))
  print(a)
  </code></pre>
  <p>formula:</p>
  <pre><code>(sub/12)*100
  </code></pre>
  <p>i am getting this error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;c:\Users\suh\Desktop\se proj 2\backend.py&quot;, line 62, in &lt;module&gt;
      a.append(res(i))
    File &quot;c:\Users\suh\Desktop\se proj 2\backend.py&quot;, line 61, in res
      def res(i):(sub/12)*100
  TypeError: unsupported operand type(s) for /: 'list' and 'int'
  </code></pre>