
September 8th, 2012, 02:02 PM
|
|
Contributing User
|
|
Join Date: Feb 2004
Location: San Francisco Bay
|
|
|
When n is 0 or 1, your function doesn't return anything, which in Python is equivalent to returning None. str(None) is 'None', which is why you're seeing it in your output.
Next time, be sure to put code tags [code][/code] around your code. Python code listings are particularly useless without them.
|