How to Create and Import a Custom Module in Python
<p>How can I save the following function in one python file, and then use it in another?</p>

<p><strong>Function in File A</strong></p>

<pre><code>def basic(x):
    print(x)
</code></pre>

<p><strong>Statement in File B</strong>:</p>

<pre><code>basic("some string")
</code></pre>