How to split 2 items of an array and join into one item?(python) : I've made a python program with array that has 2 items. I want to split and join those 2 items into one item. So the result should be 'first item, second item'. It gives that error AttributeError: 'list' object has no attribute 'split'. I attached the code. I will appreciate any help.

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-html -->

    items_in_cart=['first item','second item']
    a,b=items_in_cart.split(", ")
    items_in_cart=a+b
    print(items_in_cart)

<!-- end snippet -->

