Python File Open / Read

To read the file first use the built-in open() function. Second the read() method returns the whole text.

Code :