Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Concatenation of Tuples | Tuple
Python Data Structures
course content

Course Content

Python Data Structures

Python Data Structures

1. List
2. Dictionary
3. Tuple
4. Set
5. For deleting

bookConcatenation of Tuples

In Python, you can concatenate tuples. Concatenating tuples means creating a new tuple by joining two or more existing tuples. You achieve this using the + operator. Let's dive into an example.

12345
tuple_1 = ('one', 'two' , 'three', 'four', 'five') tuple_2 = (1, 2, 3, 4, 5) tuple_3 = tuple_1 + tuple_2 print(tuple_3)
copy

Task

Consider the following tuples:

Your goal is to create a third tuple by combining the above two, which should look like:

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 3
toggle bottom row

bookConcatenation of Tuples

In Python, you can concatenate tuples. Concatenating tuples means creating a new tuple by joining two or more existing tuples. You achieve this using the + operator. Let's dive into an example.

12345
tuple_1 = ('one', 'two' , 'three', 'four', 'five') tuple_2 = (1, 2, 3, 4, 5) tuple_3 = tuple_1 + tuple_2 print(tuple_3)
copy

Task

Consider the following tuples:

Your goal is to create a third tuple by combining the above two, which should look like:

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 3
toggle bottom row

bookConcatenation of Tuples

In Python, you can concatenate tuples. Concatenating tuples means creating a new tuple by joining two or more existing tuples. You achieve this using the + operator. Let's dive into an example.

12345
tuple_1 = ('one', 'two' , 'three', 'four', 'five') tuple_2 = (1, 2, 3, 4, 5) tuple_3 = tuple_1 + tuple_2 print(tuple_3)
copy

Task

Consider the following tuples:

Your goal is to create a third tuple by combining the above two, which should look like:

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

In Python, you can concatenate tuples. Concatenating tuples means creating a new tuple by joining two or more existing tuples. You achieve this using the + operator. Let's dive into an example.

12345
tuple_1 = ('one', 'two' , 'three', 'four', 'five') tuple_2 = (1, 2, 3, 4, 5) tuple_3 = tuple_1 + tuple_2 print(tuple_3)
copy

Task

Consider the following tuples:

Your goal is to create a third tuple by combining the above two, which should look like:

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 3. Chapter 3
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt