← Back to challenges

Default Mood

PythonHardlanguage_fundamentalsstrings

Instructions

Create a function that takes in a current mood and return a sentence in the following format: "Today, I am feeling {mood}". However, if no argument is passed, return "Today, I am feeling neutral".

Examples

mood_today("happy") ➞ "Today, I am feeling happy"

mood_today("sad") ➞ "Today, I am feeling sad"

mood_today() ➞ "Today, I am feeling neutral"

Notes

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Convert a Number to Base-2