def analyze_file_list (tiger):
f = open("tiger.txt", "r")
print(f.read)
lines = f.readlines
for word in lines:
words= line.split()
print(words)
print(analyze_file_list)
Unser Textkorpus den wir benutzen heißt "tiger.txt", deswegen steht das in f. Und das Hauptproblem ist es, dass unser ...
Die Suche ergab 2 Treffer
- Dienstag 25. Juni 2019, 19:24
- Forum: Allgemeine Fragen
- Thema: Analyze a text file
- Antworten: 6
- Zugriffe: 934
- Dienstag 25. Juni 2019, 18:21
- Forum: Allgemeine Fragen
- Thema: Analyze a text file
- Antworten: 6
- Zugriffe: 934
Analyze a text file
Hallo,
wir haben folgende Frage gestellt bekommen:
1.1 Write a function which returns a list
Write a function called analyze file list() which takes a file path as an argument and returns a list. The structure of the list should be as follows: [(name of the file as string), (number of words in the ...
wir haben folgende Frage gestellt bekommen:
1.1 Write a function which returns a list
Write a function called analyze file list() which takes a file path as an argument and returns a list. The structure of the list should be as follows: [(name of the file as string), (number of words in the ...
