In Python, use the list method "extend" or the infix operators + and += to append lists.  l = [1, 2] l.extend([3, 4, 5]) print l + [6, 7]  After executing this code, l is a list containing [1, 2, 3, 4, 5], while the output generated is the list [1, 2, 3, 4, 5, 6, 7]. Do not confuse with the list method "append", which adds a single element to a list:  l = [1, 2] l.append(3)  Here, the result is a list containing [1, 2, 3]. In Bash the append redirect is the usage of "»" for adding a stream to something, like in the following series of shell commands:  echo Hello world! >text; echo Goodbye world! »text; cat text  The stream "Goodbye world!" is added to the text file written in the first command. The ";" implies the execution of the given commands in order not simultaneously. So, the final content of the text file is:  Hello world! Goodbye world!