In the filemodel.py file, write a program that inserts lines of text from a file into a list and allows the user to view and navigate through any line of text from the file.
The program should present a menu of options (provided in fileview.py) that allows the user to enter a filename and to navigate to the first line, the last line, the next line, and the previous line. #( This file will be provided )
Complete the implementation of the __init__ method.
2. Complete the implementation of the first() method.
Allows user to navigate to first line of file.
3. Complete the implementation of the last() method.
Allows user to navigate to last line of file.
4. Complete the implementation of the next() method.
Allows user to navigate to next line of file.
5. Complete the implementation of the previous() method.
Allows user to navigate to previous line of file.