How to concatenate lists using sequence operator as function in Python

1 Answer

0 votes
from operator import *     

a = [1, 2, 3, 4]     
b = ['a', 'b', 'c']     

print(concat(a, b))


'''
run:

[1, 2, 3, 4, 'a', 'b', 'c']

'''

 



answered May 31, 2019 by avibootz
...