Learn Before
'+' ( concatenation ) operator
The examples shown below work with lists named my_list containing the following items/elements 1, '1cademy', 12.59, True and your_list containing the items/elements such as 3.14,365,'earth',False,'i'.
The operator '+' concatenates two list or concatenates an element/items to an existing list.
- Example for "+" operator
my_list+your_list
output
[1, '1cademy', 12.59, True, 3.14, 365, 'earth', False, 'i']
0
1
Tags
Python Programming Language
Data Science
Related
'in' operator
'not in' operator
'*' ( repetition ) operator
'+' ( concatenation ) operator
slicing the list from i to j ( i and j are integers )
indexing i th item of a list
slicing with a step
length of a list which is passed as the argument of the function len()
min() ( smallest item in the list )
max() ( largest item in the list )
index of an element in the list at or after an index and before another index
count ( total number of occurrences of a particular element in the list )