Games Search Example 2

Searching games by title

User input is in bold.

$ python3 search-games.py
This program helps the user explore a data set of
over a thousand video games released between
2004 and 2008.

In particular, you can:
1. Search by console and release year
2. Search by game title
3. Quit

Choice: 2
Enter game title (or start of title): Sonic
                         TITLE REVIEW SALES PRICE CONSOLE YEAR PLAYTIME
------------------------------ ------ ----- ----- ------- ---- --------
    Sonic and the Secret Rings     69  1.08 16.95     Wii 2007      9.3
Sonic Chronicles: The Dark Bro     74  0.52 17.95      DS 2008     20.0
    Sonic Riders: Zero Gravity     56  0.45 16.95     Wii 2008      4.3
                  Sonic Rivals     64  0.76 17.95     PSP 2006      6.5
                Sonic Rivals 2     60  0.46 22.95     PSP 2007     22.0
                    Sonic Rush     82  1.20 14.95      DS 2005      6.2
          Sonic Rush Adventure     78  0.52 24.95      DS 2007      9.0
            Sonic the Hedgehog     46  0.41 14.95    X360 2007      3.1
            Sonic the Hedgehog     43  0.40 16.95     PS3 2007      3.1
               Sonic Unleashed     66  1.09 17.95     Wii 2008     13.0
               Sonic Unleashed     54  0.42 17.95     PS3 2008     13.0
               Sonic Unleashed     60  0.41 17.95    X360 2008     13.0

12 matches found

1. Search by console and release year
2. Search by game title
3. Quit

Choice: 2
Enter game title (or start of title): frogg
                         TITLE REVIEW SALES PRICE CONSOLE YEAR PLAYTIME
------------------------------ ------ ----- ----- ------- ---- --------
         Frogger: Helmet Chaos     66  0.11 19.95     PSP 2005     -1.0
         Frogger: Helmet Chaos     69  0.06 17.95      DS 2005     -1.0

2 matches found

1. Search by console and release year
2. Search by game title
3. Quit

Choice: 2
Enter game title (or start of title): CS21
Sorry, no matches were found.

1. Search by console and release year
2. Search by game title
3. Quit

Choice: 3
Goodbye!