how to concatenate two string from 2 list in one list without getting double quotation doubled?

Question:

i have two list i want to have concatenation without additional quote ,and those lists that i want to enter

a=["a"]
b=["b"]

** how i can pass it in matrix like this**

matrix["ab"]

** or how i can get this result , i try append and concatenate but it doesn’t work**

c=["ab"]
Asked By: Hi Chem

||

Answers:

Use

d = list([a[0]+b[0]])

or use the code below which also combines strings from longer lists such as [‘a’, ‘c’] and [‘b’, ‘e’]

d = [i+j for i, j in zip(a,b)]
Answered By: user19077881
Categories: questions Tags: , , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.