- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Core Tech
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 Info
Table of Contents
-
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.
-
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.
-
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.
-
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.
-
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
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.