Software Engineer | Founder | Cloud & ML-Driven Problem Solver
I build technology that improves real-world safety, productivity, and community life.
From mobile apps to cloud-scale data pipelines, my mission is to create systems that help people and cities operate smarter.
def work_life_balance(task: str, mood: str = 'neutral') -> str:
"""
A function to balance work and fun with a touch of creativity.
Args:
- task (str): The task to execute.
- mood (str): Your current mood. Default is 'neutral'.
Returns:
- str: A fun yet professional message.
"""
fun_emojis = {
'happy': 'π',
'neutral': 'π',
'sad': 'π',
'excited': 'π€©',
'stressed': 'π«'
}
professional_advice = {
'happy': "Great! But don't forget your responsibilities.",
'neutral': "Stay balanced, don't overwork or overplay.",
'sad': "Maybe take a short break and come back stronger.",
'excited': "Channel that excitement into productivity!",
'stressed': "Take a deep breath, and tackle tasks one at a time."
}
fun_quotes = {
'happy': "Happiness is the key to productivity!",
'neutral': "A steady pace wins the race.",
'sad': "Every cloud has a silver lining.",
'excited': "Ride the wave of excitement to success!",
'stressed': "Stress is just a step away from success."
}
if mood not in fun_emojis:
return "Invalid mood! Please choose between 'happy', 'neutral', 'sad', 'excited', or 'stressed'."
return (f"Task to complete: {task} {fun_emojis[mood]}. "
f"Advice: {professional_advice[mood]} "
f"Quote: '{fun_quotes[mood]}'")
# Example usage:
message = work_life_balance("Complete Python project", "excited")
print(message)


