No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
Re: [QUOTE=Rete;130037]I have another problem with pythons Input, and I was wondering if someone could help me. Whenever I get any input from the user, python keeps printing out on a new line. So for example: [B]test = raw_input ("Input word")[/B] [B]print "Why "+ test +" there a line break all … | |
Re: [QUOTE=jobs;452778]Why can't you do this? [code=python] a = [] a.append('1').append('2') [/code] You can only do this: [code=python] a.append('1') a.append('2') [/code][/QUOTE] 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 |