combining two lists
Python
list1 = [23, 24, 25, 26]
list2 = [27, 28, 29, 30]
list1.extend(list2)
print(list1)
#or
list1 = [23, 24, 25, 26]
list2 = [27, 28, 29, 30]
list3 = list1 + list2
print(list3)
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.