I am trying to save a .txt file, previously cleaning from the previous .txt, but it is not saved and gives me an error in the final print [0]. I have been watching video and they do it.
I am using jupyter notebook. I'm sorry for my English it is low.
archivo = open ("salida_tweets.txt")
linea = archivo.readline()
tweet=linea.split(',"text":"')
s = len(tweet)
for i in range(1,s):
final = tweet[i].split('","truncated"')
print final [0]
File "<ipython-input-6-acef6c26b974>", line 9
print final [0]
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean
print(final [0])?