Featured resource
2026 Tech Forecast
2026 Tech Forecast

1,500+ tech insiders, business leaders, and Pluralsight Authors share their predictions on what’s shifting fastest and how to stay ahead.

Download the forecast
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Core Tech
Labs

Study Break Planner in Python

Build a command-line Study Break Planner in Python that turns user input into a randomized break suggestion. Along the way, you will practice imports, lists, conditionals, helper functions, and a complete CLI flow while validating each task with focused pytest checks.

Lab platform
Lab Info
Level
Beginner
Last updated
Jun 10, 2026
Duration
30m

Contact sales

By clicking submit, you agree to our Privacy Policy and Terms of Use, and consent to receive marketing emails from Pluralsight.
Table of Contents
  1. Challenge

    Step 1: Explore the project and the planning workflow

    Welcome to the Study Break Planner lab. In this project, you will complete a small command-line Python application that turns a user's energy level and available time into a suggested break activity.

  2. Challenge

    Step 2: Create the shared inputs and validation helpers

    This step focuses on the earliest stages of a reliable program: shared configuration and input cleanup. Before an application can make good decisions, it needs a consistent vocabulary for accepted values and a predictable way to compare user input against that vocabulary.

  3. Challenge

    Step 3: Use conditionals and randomness to choose activities

    This step is where the planner begins to feel dynamic. Instead of treating every user the same way, the program will branch based on the energy level and build a list of appropriate activities.

  4. Challenge

    Step 4: Build time-aware guidance and assemble the plan

    In this step, you will move from isolated helper functions to a more complete planning workflow. The new pieces add time awareness to the application and then combine everything into a single plan dictionary that later code can display.

  5. Challenge

    Step 5: Format the output and complete the CLI flow

    The final step moves from data processing to presentation. Up to this point, the program has focused on making decisions and returning structured values.

About the author

Tom is a staff author at Pluralsight helping to develop Hands-On content. Tom's background in software development, UI/UX, and instructional design was developed over the years while working as a faculty member at the School of Computing at Weber State University in Utah, and continues to grow as he develops Projects and Labs for Pluralsight. When he's not creating content to allow learners to gain real-life experience, he enjoys spending time with his family.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight