Appending to []
a = [].append('x').append('y').append('z'). would be possible with a containing the resulting list ['. x', 'y', 'z']. That is the way I expect any append to behave.
a = [].append('x').append('y').append('z'). would be possible with a containing the resulting list ['. x', 'y', 'z']. That is the way I expect any append to behave.
[Tutor] Append function. kumar s ps_python at yahoo.com Sun Jan 30 23:48:06 CET 2005.In append function instead of appending one below the other can I append one next to other. I have a bunch of files where the first column is always the same.
This is syntactically wrong, so is there a function which appends a > value to a list and > returns the new value, so that I could write something like this: > > f(list(a).functional_append(4)). Sure there is, just not as a list method.
Best (instead of making shure that your code never tries to "append" a string, that doesn't end in newline) is to rewrite your "append" function, so that it test itself if the "mp3" string ends with a newline.Hey, welcome at tutor and python