Print a list in another function in Python
<p>I want to print <code>myList</code> in <code>def b():</code>. I used the following code:</p>

<pre><code>def a():
    myList = []
    name = myList.append(raw_input("my name"))
    return myList

def b():
    newList=a()
    print newList
</code></pre>

<p>But it isn't working. What do I need to change to be able to do this?</p>
