I have a list and I a trying to concatenate 2 items in the list using .join()
.
Sample data:
l = ['a', 'b', 'c', 'd']
str = ' '.join(l[1:2])
print(str)
The output prints only b
but I am expecting to print b c
. someone point me what is wrong here