How can I use variables in other modules in python?
<p>That's one.py:    </p>

<pre><code>test = {'1': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]}
import two
two.example()
</code></pre>

<p>And that's two.py:</p>

<pre><code>def example():
    print test[1][5]
</code></pre>

<p>Can you tell me why this will fail with the following error?</p>

<pre><code>NameError: global name 'test' is not defined
</code></pre>

<p>Thanks!</p>
