importing external “.txt” file in python
You can import modules but not text files. If you want to print the content do the following: Open a text file for reading: Store content in a variable: Print content of this file: After you’re done close a file: