<div>Hi again!</div>
<div> </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> if x%2 == 0: <br> print x, "is even" <br> else: <br> print x, "is odd"<br> <br>def funcB(y): # function describiing the oddness or eveness of an y number
<br> if y%2 ==0:<br> print y, "is even"<br> else:<br> print y, "is odd"<br> <br># no more functions after this line </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("Please type a number: ")<br>print x</strong></p>
<p><strong>y=input("Please type another number: ")<br>print y</strong></p>
<p><strong>if x>y:<br> print x,("is greater than"),y<br>else:<br> print y,("is greater than"),x</strong></p>
<p><strong>if y and x >=0:<br> print ("Both are positive numbers!")</strong></p>
<p><strong>print funcA(x)<br>print funcB(y)</strong></p></blockquote>
<p> 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> </div>
<div>I don't understand why I am getting 2 instances of "None" in the output, when it has not been programmed by me. What is going on?</div>
<div> </div>
<div>Pls. advice</div>
<div> </div>
<div>Thanks again,</div>
<div>V </div><br> </div>