Simple Python Function
<p>I did simple python function which takes two inputs and output some text.</p>

<p>Here it is,</p>

<pre><code>def weather():
    israining_str=input("Is it raining (1 or 0) ? ")
    israining = bool(israining_str)

    temp_str=input("What is the temp ? ")
    temp = float(temp_str)

    if israining==True and temp&lt;18:
        return "Umbrella &amp; Sweater"
    elif israining==True and temp&gt;=18:
        return "Umbrella"
    elif israining==False and temp&lt;18:
        return "Sweater"
    else:
        return "Cap"
</code></pre>

<p>Test data -</p>

<pre><code>&gt;&gt;&gt; 
Is it raining ? 0
What is the temp ? 43
Umbrella
&gt;&gt;&gt; ================================ RESTART ================================
&gt;&gt;&gt; 
Is it raining ? 1
What is the temp ? 43
Umbrella
&gt;&gt;&gt; 
</code></pre>

<p>If raining is false it shroud give <code>Sweater</code> or <code>Cap</code>. But my code gives true even <code>israining_str == 0</code> or <code>israining_str == 1</code></p>

<p>Where am i doing wrong ?</p>
