Games Sort Example 2
Getting a sorted list of games by sales figures
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. Rank best reviewed games by console and genre 4. Find top selling games by year 5. Help: list possible Genres 6. Quit Choice: 4 Enter year: 2005 TITLE REVIEW SALES PRICE CONSOLE YEAR PLAYTIME ------------------------------ ------ ----- ----- ------- ---- -------- Mario Kart DS 91 9.99 29.95 DS 2005 9.08 Nintendogs 83 9.72 26.95 DS 2005 27.98 Brain Age: Train Your Brain in 77 5.07 17.95 DS 2005 1.0 Brain Agey: More Training in M 77 3.65 17.95 DS 2005 15.0 Grand Theft Auto: Liberty City 88 2.97 17.95 PSP 2005 14.97 Animal Crossing: Wild World 86 2.6 24.95 DS 2005 80.53 Big Brain Academy 74 1.77 16.95 DS 2005 7.13 Call of Duty 2 89 1.69 17.95 X360 2005 9.0 Midnight Club 3: DUB Edition 74 1.69 14.95 PSP 2005 48.0 Need for Speed: Most Wanted 5- 72 1.67 14.95 PSP 2005 10.33 Pokmon Mystery Dungeon: Blue R 62 1.22 14.95 DS 2005 25.62 Sonic Rush 82 1.2 14.95 DS 2005 6.22 Star Wars: Battlefront II 69 1.09 16.95 PSP 2005 9.0 SOCOM: U.S. Navy SEALs - Firet 82 1.07 14.95 PSP 2005 8.58 Need for Speed: Most Wanted 83 0.95 17.95 X360 2005 12.0 Zoo Tycoon DS 44 0.92 12.95 DS 2005 -1.0 The Sims 2 70 0.83 17.95 DS 2005 34.92 Madden NFL 06 75 0.75 7.95 PSP 2005 3.75 Mario & Luigi: Partners in Tim 86 0.75 29.95 DS 2005 18.65 Need for Speed Underground: Ri 74 0.73 17.95 PSP 2005 20.47 Twisted Metal: Head-On 79 0.73 14.95 PSP 2005 -1.0 Perfect Dark Zero 79 0.7 17.95 X360 2005 8.0 Super Monkey Ball: Touch & Rol 63 0.7 15.95 DS 2005 0.57 Super Princess Peach 75 0.7 29.95 DS 2005 9.28 Burnout Legends 86 0.68 14.95 PSP 2005 12.0 25 matches found 1. Search by console and release year 2. Search by game title 3. Rank best reviewed games by console and genre 4. Find top selling games by year 5. Help: list possible Genres 6. Quit Choice: 4 Enter year: 2008 TITLE REVIEW SALES PRICE CONSOLE YEAR PLAYTIME ------------------------------ ------ ----- ----- ------- ---- -------- Mario Kart Wii 82 12.39 29.95 Wii 2008 9.12 Grand Theft Auto IV 98 5.76 24.95 X360 2008 32.0 Super Smash Bros.: Brawl 93 5.71 39.95 Wii 2008 15.0 Call of Duty: World at War 84 4.58 29.95 X360 2008 8.0 Grand Theft Auto IV 98 3.91 24.95 PS3 2008 32.0 Gears of War 2 93 3.9 24.95 X360 2008 10.0 Pokmon: Platinum Version 83 2.86 27.95 DS 2008 43.0 Metal Gear Solid 4: Guns of th 94 2.58 22.95 PS3 2008 18.9 Fable II 89 2.55 17.95 X360 2008 20.0 Call of Duty: World at War 85 2.53 29.95 PS3 2008 8.0 Guitar Hero: World Tour 86 2.47 17.95 Wii 2008 8.62 LittleBigPlanet 95 2.46 24.95 PS3 2008 10.0 Fallout 3 93 2.44 17.95 X360 2008 45.0 LEGO Indiana Jones: The Origin 77 2.42 9.95 X360 2008 13.72 Left 4 Dead 89 2.39 19.95 X360 2008 7.0 Madden NFL 09 83 2.33 14.95 X360 2008 14.52 Guitar Hero: On Tour 71 2.22 14.95 DS 2008 24.0 Kung Fu Panda 75 2.04 9.95 X360 2008 5.0 Rock Band 2 92 1.85 19.95 X360 2008 12.5 Sega Superstars Tennis 67 1.84 9.95 X360 2008 8.0 Animal Crossing: City Folk 73 1.78 29.95 Wii 2008 65.0 Guitar Hero: World Tour 85 1.78 16.95 X360 2008 8.62 Mario & Sonic at the Olympic G 70 1.74 24.95 DS 2008 9.0 Madden NFL 09 85 1.66 14.95 PS3 2008 14.52 LEGO Batman: The Videogame 76 1.64 14.95 X360 2008 15.0 25 matches found 1. Search by console and release year 2. Search by game title 3. Rank best reviewed games by console and genre 4. Find top selling games by year 5. Help: list possible Genres 6. Quit Choice: 2009 Invalid choice, try again. 1. Search by console and release year 2. Search by game title 3. Rank best reviewed games by console and genre 4. Find top selling games by year 5. Help: list possible Genres 6. Quit Choice: 6 Goodbye!