{"id":3003,"date":"2023-10-20T08:44:16","date_gmt":"2023-10-20T03:14:16","guid":{"rendered":"https:\/\/python-programs.com\/?p=3003"},"modified":"2023-11-10T11:50:53","modified_gmt":"2023-11-10T06:20:53","slug":"python-join-merge-two-or-more-lists","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-join-merge-two-or-more-lists\/","title":{"rendered":"Python : Join \/ Merge Two or More Lists"},"content":{"rendered":"

Basic Concepts\/Terminologies<\/h2>\n

In this article, we will discuss different ways to join two or more lists in python. Before going to the actual let us understand about lists in python.<\/p>\n

List<\/h3>\n

The list is one of the data structures in python that is used to store multiple items in a single variable. The best thing about the list is that we can store the value of different data types in a single list i.e. we can store string, int, and float values in the same list.<\/p>\n

l=[1,2,\"list\",3.3,\"Raj\",4]\r\nprint(type(l))<\/pre>\n

Output<\/p>\n

<class 'list'><\/pre>\n

In this example, we see how we can easily store different variables in the same list.<\/p>\n

Ways to join two or more lists in python<\/h3>\n