Answers for "join two list e elements in python"

1

merge list elements python

StringName = "seperator".join(ListName)

# Seperator denotes character between each of the joined list elements
Posted by: Guest on September-25-2020
0

how to join two lists in python

#define lists
my_list = ["a", "b"]
other_list = [1, 2]

#extend my_list by adding all the values from other_list into my list
my_list.extend(other_list)

# output: ['a', 'b', 1, 2]
Posted by: Guest on May-20-2021

Code answers related to "join two list e elements in python"

Python Answers by Framework

Browse Popular Code Answers by Language