How to set default value for variable?
<p>Imagine I have the following code in javascript</p>
<pre class="lang-js prettyprint-override"><code>function test(string) {
    var string = string || 'defaultValue'
}
</code></pre>
<p>What is the Python way of initiating a variable that may be undefined?</p>