python how to convert Nonetype to int or string
<p>I've got an Nonetype value x, it's generally a number, but could be None. I want to divide it by a number, but python says</p>

<pre><code>TypeError: int() argument must be a string or a number, not 'NoneType'
</code></pre>

<p>How could I solve that</p>
