Project Level 1: Beginner
This project is designed for beginner learners who are still learning and practicing Python fundamentals.
Project Description
Write a program that gently suggests self-care activities for the day. The program randomly selects an activity from a predefined list of calming, relaxing actions to promote mental well-being.
self_care_activities = [
"Take a short walk in nature. 🌿",
"Drink a big glass of water. 💧",
"Do some deep breathing for 5 minutes. 🧘♂️",
"Listen to your favorite music. 🎵",
"Write down three things you're grateful for. ✨",
"Read a chapter from a book you love. 📚",
"Stretch your body gently. 🤸♀️",
"Spend a few minutes with a pet or a loved one. 🐾",
"Watch the sunset or sunrise. 🌅"
]
How the Program Works
Any time you run the program, it generates a self-care suggestion you can do at some point in your day. For example:
If you run it again, it will randomly select another self-care activity from a list of pre-defined activities.
And here is another run:
To help you get started, you can use the following list of activities:
self_care_activities = [
"Take a short walk in nature. 🌿",
"Drink a big glass of water. 💧",
"Do some deep breathing for 5 minutes. 🧘♂️",
"Listen to your favorite music. 🎵",
"Write down three things you're grateful for. ✨",
"Read a chapter from a book you love. 📚",
"Stretch your body gently. 🤸♀️",
"Spend a few minutes with a pet or a loved one. 🐾",
"Watch the sunset or sunrise. 🌅"
]
Learning Benefits
Random Module: Practice using
random.choice()
to select an item from a list.Lists: Gain experience creating and working with lists of strings.
Positive Messaging: Create a feel-good program that’s beginner-friendly and impactful.
Prerequisites
Required Libraries: random library (it comes preinstalled with Python)
Required Files: No files are needed for this project.
IDE: You can use any IDE on your computer to code the project.
Danger Zone
We provide two solutions for this problem. Find them both in the button below:
Hi guys, here's my code: https://pastebin.com/3FzUcvs9
@Ardit, I see only one solution. Thank you for good examples.