Page 322 -
P. 322
guis and data
First, you need to create a function called read_depots() that will read the lines in a text file and return them to
1 your code as a list.
Hint: When you read a line from the file, it might have a newline character at the end. The rstrip() string method
will remove it for you.
This function will be def read_depots(file):
inserted here.
Then, you need to replace this section of the code with code that generates an option menu using the data from the
2 read_depots() function you just created. It should use a file called depots.txt. Write the code here:
you are here 4 287