def work_life_balance(task: str, mood: str = 'neutral') -> str:
"""
A function to balance work and fun.
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': '😞'
}
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."
}
if mood not in fun_emojis:
return "Invalid mood! Please choose between 'happy', 'neutral', or 'sad'."
return (f"Task to complete: {task} {fun_emojis[mood]}. "
f"Advice: {professional_advice[mood]}")
# Example usage:
message = work_life_balance("Complete Python project", "happy")
print(message)
Linux admin, cross-platform coder, JavaScript front-end, Python developer and DevOps engineer.
- France
Pinned Loading
-
docsible/docsible
docsible/docsible PublicAuto documentation for Ansible roles and collections
-
bonjour-python
bonjour-python Public🐍 Formation Python Intégrale 🌟: Plongez dans Python depuis les bases jusqu'aux projets avancés. Clarté, pratique, et innovation au rendez-vous. Commencez votre aventure Python maintenant!
-
uplite
uplite PublicLightweight, self-hosted file upload, browsing, and management tool for devs
EJS
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.