Concatenating Lists

Description

We can concatenate lists using the + operator. Concatenated lists will become a single lists, in the order specified by the user.

Sage Cell

Code

A = [ 1, 2, 3 ]
B = [ 4, 5 ]
C = A + B
print C
C = B + A
print C

Options

none

Tags

Primary Tags:

Secondary Tags:

A list of possible tags can be found at The WeBWorK Open Problem Library. For linear algebra tags see the Curated Courses Project.

Related Cells

Any related cells go here. Provide a link to the page containing the information about the cell.

Attribute

Permalink:

Author:

Date: 22 Mar 2019 14:15

Submitted by: Zane Corbiere

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License