When a person speaks, this is often represented in a piece of text by enclosing the spoken part within double quotes ("
).
Write a function quotes
that takes the location of a text file (str
). The function must return a list
containing all quotes in the given text file. A quote is a fragment of the text that is enclosed in double quotes.
In the following interactive session we assume the text file data.en.txt
1 to be located in the current directory.
>>> quotes('data.en.txt')
['Pythonesque']