Python Minigames

20 Questions you own this product

This project is part of the liveProject series Python Minigames
prerequisites
Python basics • pandas basics • Jupyter Notebook basics
skills learned
data processing • user input • randomness • data filtering • CRUD operations • modularizing code • debugging
Jaya Moore
1 week · 6-8 hours per week · INTERMEDIATE

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Look inside

In this liveProject, you’ll use Python to create a command-line version of the classic guessing game 20 Questions. In your version of the game, the computer will have up to twenty chances to guess what animal the player is thinking of. You’ll use Jupyter notebooks to code your program and define functions that build a knowledge base in real time. Then, you’ll test and debug your code by playing against the computer.

This project is designed for learning purposes and is not a complete, production-ready application or solution.

book resources

When you start your liveProject, you get full access to the following books for 90 days.

project author

Jaya Moore
Jaya Moore is a developer enablement professional with a specialization in developer education. She has extensive experience serving organizations across the world as a technical writer, web developer, and data scientist. She has been learning and writing about Python for over six years.

prerequisites

This liveProject is for intermediate-level Python practitioners who are comfortable with the basics of manipulating strings, operating on data structures (such as lists and dictionaries), defining functions, and debugging code. To begin this liveProject, you will need to be familiar with the following:


TOOLS
  • Basic Python
  • Basic pandas
TECHNIQUES
  • Operating on strings, files, data structures
  • Storing and accessing data in lists and dictionaries
  • Control flow and conditional logic
  • Installing and importing Python modules
  • Running a Python script from the command line

you will learn

In this liveProject, you’ll build and manage a dataset that is dynamically generated during gameplay with the end-user. The skills you’ll learn throughout this project will be directly applicable to your job as a software developer, analyst or data scientist.


  • Using pandas to create and manage a dataset
  • Operating on DataFrames
  • Getting and sanitizing user input
  • Implementing randomness and conditional logic
  • Modularizing your code
  • Running your code as a command-line script

features

Self-paced
You choose the schedule and decide how much time to invest as you build your project.
Project roadmap
Each project is divided into several achievable steps.
Get Help
While within the liveProject platform, get help from other participants and our expert mentors.
Compare with others
For each step, compare your deliverable to the solutions by the author and other participants.
book resources
Get full access to select books for 90 days. Permanent access to excerpts from Manning products are also included, as well as references to other resources.

choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • 20 Questions project for free