If/Else Statement and Lists Within Functions - Python 3.x
<p>So I'm trying to design two functions, one to create a list and one to check certain parameters within that list. The <code>check()</code> function is to see if any of the elements of the <code>price()</code> function's randomly generated list are >100 then inform the user which of those elements need to be recorded. To be honest, I'm not really sure where to begin with the <code>check()</code> function and was hoping someone might have some advice?</p>

<pre><code>def price():
    priceList = [1,2,3,4,5,6,7,8,9,10]
    print ("Price of Item Sold:")
    for i in range (10):
        priceList[i] = random.uniform(1.0,1000.0)
        print("${:7.2f}".format(priceList[i]))
    print("\n")
    return priceList
</code></pre>

<p>I know the <code>check()</code> function is way off, but like I said, not exactly sure where to go with it.</p>

<pre><code>def check(priceList):
    if priceList &gt; 100
        print ("This item needs to be recorded")
</code></pre>

<p>Thank you in advanced for any help!</p>