[docs] python bug i thinkso

e.kirton teejahkirton at live.com
Sat Jun 9 22:04:12 CEST 2012


This is my code: print('#1')

one = input ()

one = int (one)

print('#2')

two = input ()

two = int (two)

ans = (one)+(two)

print ('answer') + repr (ans)

then i get this message when working the sum: Traceback (most recent call
last):

  File "C:\Python32\my.py", line 8, in <module>

    print ('answer') + repr (ans)

TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Is it a bug or is it justme

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20120609/2a6ae374/attachment.html>


More information about the docs mailing list