<div>Hi again!</div>
<div>&nbsp;</div>
<div>The following is a piece of code that I have written:</div>
<div>
<p><strong>def funcA(x): # function describiing the oddness or eveness of an x number<br>&nbsp; if x%2 == 0: <br>&nbsp;&nbsp;&nbsp; print x, &quot;is even&quot; <br>&nbsp; else: <br>&nbsp;&nbsp;&nbsp; print x, &quot;is odd&quot;<br>&nbsp;&nbsp;&nbsp; <br>def funcB(y): # function describiing the oddness or eveness of an y number
<br>&nbsp; if y%2 ==0:<br>&nbsp;&nbsp;&nbsp; print y, &quot;is even&quot;<br>&nbsp; else:<br>&nbsp;&nbsp;&nbsp; print y, &quot;is odd&quot;<br>&nbsp;&nbsp;&nbsp; <br># no more functions after this line&nbsp;&nbsp;&nbsp; </strong></p>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<p><strong>x=input(&quot;Please type a number: &quot;)<br>print x</strong></p>
<p><strong>y=input(&quot;Please type another number: &quot;)<br>print y</strong></p>
<p><strong>if x&gt;y:<br>&nbsp;&nbsp;&nbsp; print x,(&quot;is greater than&quot;),y<br>else:<br>&nbsp;&nbsp;&nbsp; print y,(&quot;is greater than&quot;),x</strong></p>
<p><strong>if y and x &gt;=0:<br>&nbsp;&nbsp;&nbsp; print (&quot;Both are positive numbers!&quot;)</strong></p>
<p><strong>print funcA(x)<br>print funcB(y)</strong></p></blockquote>
<p>&nbsp;And this is the output in IDLE after execution:</p>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<p><strong>Please type a number: 5<br>5<br>Please type another number: 10<br>10<br>10 is greater than 5<br>Both are positive numbers!<br>5 is odd<br>None<br>10 is even<br>None</strong></p></blockquote>
<div>&nbsp;</div>
<div>I don't understand why I am getting 2 instances of &quot;None&quot; in the output, when it has not been programmed by me. What is going on?</div>
<div>&nbsp;</div>
<div>Pls. advice</div>
<div>&nbsp;</div>
<div>Thanks again,</div>
<div>V </div><br>&nbsp;</div>