How can I create an empty variable based on another data type in Python?
<p>How can I create empty variable that has the same data type of another variable?</p>

<pre><code>   data = get_data()
   new_variable = data.data_type()  #just create empty variable
</code></pre>

<p>In the above case, if <code>data</code> is a list then <code>new_variable</code> will be <code>list()</code></p>
