$ python3 sort_novels.py
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 1
Enter a search term: under
==============================================================================
| Title and Author | Year | Gender | Rank | Rate | Ratings
------------------------------------------------------------------------------
| 20,000 Leagues Under the Sea
| Jules Verne | 1870 | male | 37 | 3.89 | 11238
------------------------------------------------------------------------------
| Sounder
| William H. Armstrong | 1969 | male | 260 | 3.97 | 30263
------------------------------------------------------------------------------
| Roll of Thunder, Hear My Cry
| Mildred D. Taylor | 1976 | female | 198 | 3.89 | 124507
------------------------------------------------------------------------------
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 3
==============================================================================
| Title and Author | Year | Gender | Rank | Rate | Ratings
------------------------------------------------------------------------------
| Sounder
| William H. Armstrong | 1969 | male | 260 | 3.97 | 30263
------------------------------------------------------------------------------
| Roll of Thunder, Hear My Cry
| Mildred D. Taylor | 1976 | female | 198 | 3.89 | 124507
------------------------------------------------------------------------------
| 20,000 Leagues Under the Sea
| Jules Verne | 1870 | male | 37 | 3.89 | 11238
------------------------------------------------------------------------------
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 2
Enter author gender: female
==============================================================================
| Title and Author | Year | Gender | Rank | Rate | Ratings
------------------------------------------------------------------------------
| Roll of Thunder, Hear My Cry
| Mildred D. Taylor | 1976 | female | 198 | 3.89 | 124507
------------------------------------------------------------------------------
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 1
Enter a search term: the
No novels found
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 3
No novels found
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 5
Records reset
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 1
Enter a search term: on the
==============================================================================
| Title and Author | Year | Gender | Rank | Rate | Ratings
------------------------------------------------------------------------------
| The Mill on the Floss
| George Eliot | 1860 | female | 107 | 3.82 | 55099
------------------------------------------------------------------------------
| All Quiet on the Western Front
| Erich Maria Remarque | 1929 | male | 76 | 4.07 | 456883
------------------------------------------------------------------------------
| Murder on the Orient Express
| Agatha Christie | 1934 | female | 207 | 4.20 | 616572
------------------------------------------------------------------------------
| Little House on the Prairie
| Laura Ingalls Wilder | 1935 | female | 239 | 4.21 | 289969
------------------------------------------------------------------------------
| On the Banks of Plum Creek
| Laura Ingalls Wilder | 1937 | female | 309 | 4.22 | 101148
------------------------------------------------------------------------------
| Little Town on the Prairie
| Laura Ingalls Wilder | 1941 | female | 462 | 4.19 | 89010
------------------------------------------------------------------------------
| Go Tell It on the Mountain
| James Baldwin | 1953 | male | 314 | 4.04 | 67966
------------------------------------------------------------------------------
| On the Road
| Jack Kerouac | 1957 | male | 117 | 3.61 | 409488
------------------------------------------------------------------------------
| The Girl on the Train
| Paula Hawkins | 2015 | female | 402 | 3.96 | 2924281
------------------------------------------------------------------------------
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 2
Enter author gender: male
==============================================================================
| Title and Author | Year | Gender | Rank | Rate | Ratings
------------------------------------------------------------------------------
| All Quiet on the Western Front
| Erich Maria Remarque | 1929 | male | 76 | 4.07 | 456883
------------------------------------------------------------------------------
| Go Tell It on the Mountain
| James Baldwin | 1953 | male | 314 | 4.04 | 67966
------------------------------------------------------------------------------
| On the Road
| Jack Kerouac | 1957 | male | 117 | 3.61 | 409488
------------------------------------------------------------------------------
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 3
==============================================================================
| Title and Author | Year | Gender | Rank | Rate | Ratings
------------------------------------------------------------------------------
| Go Tell It on the Mountain
| James Baldwin | 1953 | male | 314 | 4.04 | 67966
------------------------------------------------------------------------------
| On the Road
| Jack Kerouac | 1957 | male | 117 | 3.61 | 409488
------------------------------------------------------------------------------
| All Quiet on the Western Front
| Erich Maria Remarque | 1929 | male | 76 | 4.07 | 456883
------------------------------------------------------------------------------
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 1
Enter a search term: from
No novels found
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 5
Records reset
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 1
Enter a search term: from
==============================================================================
| Title and Author | Year | Gender | Rank | Rate | Ratings
------------------------------------------------------------------------------
| Far from the Madding Crowd
| Thomas Hardy | 1874 | male | 93 | 3.96 | 152559
------------------------------------------------------------------------------
| Ethan Frome
| Edith Wharton | 1911 | female | 137 | 3.44 | 126656
------------------------------------------------------------------------------
| The Spy Who Came In from the Cold
| John Le Carré | 1963 | male | 363 | 4.08 | 109258
------------------------------------------------------------------------------
| From the Mixed-Up Files of Mrs. Basil E. Frankweiler
| E.L. Konigsburg | 1967 | female | 263 | 4.16 | 210158
------------------------------------------------------------------------------
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 4
==============================================================================
| Title and Author | Year | Gender | Rank | Rate | Ratings
------------------------------------------------------------------------------
| The Spy Who Came In from the Cold
| John Le Carré | 1963 | male | 363 | 4.08 | 109258
------------------------------------------------------------------------------
| Ethan Frome
| Edith Wharton | 1911 | female | 137 | 3.44 | 126656
------------------------------------------------------------------------------
| Far from the Madding Crowd
| Thomas Hardy | 1874 | male | 93 | 3.96 | 152559
------------------------------------------------------------------------------
| From the Mixed-Up Files of Mrs. Basil E. Frankweiler
| E.L. Konigsburg | 1967 | female | 263 | 4.16 | 210158
------------------------------------------------------------------------------
Please select one of the following choices:
1. Filter by title
2. Filter by gender
3. Sort by rank (worst to best)
4. Sort by number of ratings (least to most)
5. Reset list to all novels
0. Quit
Enter selection: 0
Goodbye!