Forum: Python Oct 22nd, 2007 |
| Replies: 3 Views: 1,644 Re: newbee: list.append().append() Ur question was why can't we do, a.append('1').append('2'). The reason is a.append('1') returns None, the line a.append('1').append('2') is equal to None. append('2'), which is a error |
Forum: Python Oct 22nd, 2007 |
| Replies: 12 Views: 108,906 Re: How to do Input in Python? Looks like a funny issue, I couldn't re - produce it. But Ican suggest you the solution.
try this,
print "Why "+ test.strip() +" there a line break all the time?"
It has to work out, strip will... |