How to multiply a certain integer in list?
<p>I am very new to Python... If I were to give a list, my function should return the number of times "5" appears times 50. For example, if I were to call fivePoints([1,3,5,5]) it should return 100 since the number 5 appears twice (2*50). Is creating an empty list necessary? Do I use the count function? This is what I have but I'm probably way off. </p>

<pre><code>    def fivePoints(aList):
        for i in aList:
            i.count(5*50)
        return aList
</code></pre>

<p>You want to return a number. You just have to write:</p>

<pre><code>def fivePoints(aList):
    return aList.count(5)*50

print(fivePoints([1,3,5,5]))
</code></pre>

python list arguments