Code

'+' ( 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

Updated 2021-03-25

Tags

Python Programming Language

Data Science