About this question
I have a tine code snippet and it gives me the following error:
TypeError: 'encoding' is an invalid keyword argument for this function
code:
import numpy as np
trump = open('speeches.txt', encoding='utf8').read()
# display the data
print(trump)