Re: None shown in output

2012-06-21 Thread Xander Solis
Thanks for replying still! Appreciate the help. On Fri, Jun 22, 2012 at 12:25 PM, Benjamin Kaplan wrote: > damn > > On Thu, Jun 21, 2012 at 9:24 PM, Benjamin Kaplan > wrote: > > On Thu, Jun 21, 2012 at 8:42 PM, Xander Solis wrote: > >> Hello Python list, > &

Re: None shown in output

2012-06-21 Thread Xander Solis
s(10, 2, 'divide')) output: -1 15 5 On Fri, Jun 22, 2012 at 12:23 PM, Andrew Berg wrote: > On 6/21/2012 10:42 PM, Xander Solis wrote: > > Hello Python list, > > > > Noob here with a newbie question. I'm reading and working on the > > exercise of the bo

None shown in output

2012-06-21 Thread Xander Solis
Hello Python list, Noob here with a newbie question. I'm reading and working on the exercise of the book, Learn Python the Hard way 2.0. When I use this code, I get "None" on the output. My question is why does this happen? def get_numbers(first_num, second_num, operator): if operator == 'ad