Concepts

Computer Science - Class 11
Chapter 10 Class 11 - Tuples and Dictionaries

## Concatenation

Python allows us to join tuples using the concatenation operator depicted by symbol + .

Example:

## Repetition

Repetition operation is depicted by the symbol *. It is used to repeat elements of a tuple.

The repetition operator requires the first operand to be a tuple and the second operand to be an integer only.

Example:

## Membership

### In operator

The in operator checks if the element is present in the tuple and returns True , else it returns False.

Example:

### Not in operator

The not in operator returns True if the element is not present in the tuple, else it returns False.

Example:

## Slicing

Tuple slicing creates a new tuple from an old one.

The slice operator allows you to specify where to begin slicing, where to stop slicing, and what step to take.

Syntax:

tuple[Start : Stop : Stride]

Examples:

Learn in your speed, with individual attention - Teachoo Maths 1-on-1 Class