Sep-15-2019, 11:40 PM
Hello,
I'm sorry, I probably lack too much of experience in Python programming so your response made me figure out -while watching another YouTube-tutorial- that I don't necessary need a main() in my program at all.
But even if i remove the "def main():", that doesn't really make a difference anyway...
By far, this is all I have for code... I have a bunch of docx files in one folder and the text from all of them needs to be extracted but I think I should first figure out how to extract from 1 file, so being able to print the text from one file as a proof that the code works - I think.
I believe my next step is to watch more youtube tutorials on programming in Python. Programming in C, Java, C# is all at least 1,5 years ago anyways...
But about this program above: I didn't just copy paste without thinking. I know what every line of the code should do but I guess there is some detail where I'm missing out because I don't get it why it doesn't give me the text from the word document as an output :/
I'm sorry, I probably lack too much of experience in Python programming so your response made me figure out -while watching another YouTube-tutorial- that I don't necessary need a main() in my program at all.
But even if i remove the "def main():", that doesn't really make a difference anyway...
By far, this is all I have for code... I have a bunch of docx files in one folder and the text from all of them needs to be extracted but I think I should first figure out how to extract from 1 file, so being able to print the text from one file as a proof that the code works - I think.
I believe my next step is to watch more youtube tutorials on programming in Python. Programming in C, Java, C# is all at least 1,5 years ago anyways...
But about this program above: I didn't just copy paste without thinking. I know what every line of the code should do but I guess there is some detail where I'm missing out because I don't get it why it doesn't give me the text from the word document as an output :/