l = [['John'],['rides'],['bike'],['with'],['Mr.','Brown'],]
Assume that i have a list object like that. How can print my list objects in a row without using for statement and append to a string ?
My desired output:
print("my sentence:" + ? )
print("people:" + ? + ", " + ?)
my sentence: John rides bike with Mr. Brown
people: John, Mr. Brown
MAJOR EDIT:
The reason why i create this question is i analyze text based documentation and extract information with named entity so my problem is when i grouo sequential proper nouns which are "name + surname" or " Blah Blah Organization" in list like that :
[[u'Milletvekili', u'Ay\u015fe'], [u'oraya'], [u'Merve', u'Han\u0131m'], [u'ile'], [u'gitti'], [u'.']]
I have an algorithm which compare list objects with my datasets and describes the entity type. After the if statement decided [u'Milletvekili', u'Ay\u015fe'] is a person name ;
if gettype(arr[i][0].split("'")[0]) == "Özel İsim":
newarr.append("[Person: " + str(arr[i][0]) + "]")
i append that in my new list which will be my in my output like [Person: Mr. Brown]. But i must group Capitalized words then i always have my output like that:
[Person: [u'Milletvekili', u'Ay\u015fe']]