Download CV

How to add two lists in Python

December 25, 2021

In this topic, we will learn how we can add two lists in Python. But before going through the topic, we need to understand the term List in Python. Python list is used to store multiple items in a variable. Items in the list can be any ordered, changeable, and allow to store duplicate values. Each item of the list has an appropriate indexed value where the first index of the list starts with {0}, and the length index of the list must be n-1. Each item of the list is separated by a comma (,) symbol and enclosed within square brackets [].

Posted in Uncategorized
Related Posts
Write a comment