Re: [Tutor] Codehelp: confused by the output in IDLE

2005-12-16 Thread Wolfram Kraus
vikas mohan wrote: > Hi again! > > The following is a piece of code that I have written: > > def funcA(x): # function describiing the oddness or eveness of an x number > if x%2 == 0: > print x, "is even" > else: > print x, "is odd" > > def funcB(y): # function describiing the odd

Re: [Tutor] Codehelp: confused by the output in IDLE

2005-12-16 Thread Alan Gauld
> def funcA(x): # function describiing the oddness or eveness of an x number > if x%2 == 0: >print x, "is even" > else: >print x, "is odd" >def funcB(y): # function describiing the oddness or eveness of an y number > if y%2 ==0: >print y, "is even" > else: >print y, "is odd" T

[Tutor] Codehelp: confused by the output in IDLE

2005-12-16 Thread vikas mohan
Hi again!   The following is a piece of code that I have written: def funcA(x): # function describiing the oddness or eveness of an x number  if x%2 == 0:     print x, "is even"   else:     print x, "is odd"    def funcB(y): # function describiing the oddness or eveness of an y number   if y%2 ==0