Is there a "best" way to do something in Python
<p>I'm just starting getting into Python - my focus being on using it with Maya and its API - and I've found that when I'm working on something there's, generally, at least 2 or 3 ways to do the same thing that I'm trying to do. For instance:</p>

<pre><code>for key, value in locNameConnector.iteritems():
    value = locNameConnector[key]
    cmds.connectJoint(value, key, pm=True)
</code></pre>

<p>or </p>

<pre><code>for name in locNameConnector:
    cmds.connectJoint(locNameConnector[name][0], name, pm=True)
</code></pre>

<p>now the code is calling specific things in Maya, but my question is, which way is more correct? I feel like the first one is because it's taking advantage of Python's power, while the second one could be written in any language. Is there a more correct way? Is one faster than the other?</p>
