Help with basic Python function
<p>I have a function to connect to a database. This code works:</p>

<pre><code>def connect():
    return MySQLdb.connect("example.com", "username", "password", "database")
</code></pre>

<p>But this doesn't:</p>

<pre><code>def connect():
    host = "example.com"
    user = "username"
    pass = "password"
    base = "database"
    return MySQLdb.connect(host, user, pass, base)
</code></pre>

<p>Why so?</p>
