I am new to python. Are there other ways to print lists for example
li1 = ['This is one sentence. ' 'This is another.']
print(...)
And then the output would be :
This is one sentence. This is another.
I am new to python. Are there other ways to print lists for example
li1 = ['This is one sentence. ' 'This is another.']
print(...)
And then the output would be :
This is one sentence. This is another.
You can unpack the list
print(*l)
and choose the separator in between elements.
print(*l, sep=', ')