I'm using Python to create a list from text extracted from zoom, this is the text...
text= """
09:04:57 РћС‚ John Aiton РєРѕРјСѓ Р’СЃРµ : Tomorrow I'm going on a trip GRA
09:05:05 РћС‚ John Aiton РєРѕРјСѓ Р’СЃРµ : now I am on a trip GRA
09:08:03 РћС‚ John Aiton РєРѕРјСѓ Р’СЃРµ : soon we go down south GRA
"""
When I tried to append to an empty list with this code
my = []
for line in text.splitlines():
my.append(line[46:])
print(my)
I got repeated results in the output, the beginning of which is below:
["Tomorrow I'm going on a trip GRA"]
["Tomorrow I'm going on a trip GRA", 'now I am on a trip GRA']
["Tomorrow I'm going on a trip GRA", 'now I am on a trip GRA', 'soon we go down south GRA']
["Tomorrow I'm going on a trip GRA", 'now I am on a trip GRA', 'soon we go down south GRA', 'meet up with a friend LRG']
["Tomorrow I'm going on a trip GRA", 'now I am on a trip GRA', 'soon we go down south GRA', 'meet up with a friend LRG', "it reminds me of a book I'm listening to now LRG"]
How can I avoid this repetition and end up with an output (in list or string form) like this:
Tomorrow I'm going on a trip GRA
now I am on a trip GRA
soon we go down south GRA
forloop