Press play to try.
#function to check mood and energy
def mood_check():
tuple = ('high', 'low')
while True:
mood = input("Rate your mood (low or high): ").strip().lower()
energy = input("Rate your energy (low or high): ").strip().lower()
if mood in tuple and energy in tuple:
return mood, energy
else:
print('Please enter valid answers.')
#function to get recommendation
def recommendation(mood, energy):
if mood == 'high' and energy == 'high':
return("You are feeling great! Do all the important things in your life that require a good mood and good energy!")
elif mood == 'high' and energy == 'low':
return("Your mood is high and energy is low. Consider resting and relaxing. Journaling. Drink coffee if you want more energy. Count your blessings. Speak positive affirmations.")
elif mood == 'low' and energy == 'high':
return("Your mood is low and energy is high. Consider working out so that you can use your energy to raise your mood. Clutter Clearing. Cleaning.")
elif mood == 'low' and energy == 'low':
return("Your mood and energy are both low. Consider taking a nap, meditating, or going to sleep to rest and refresh. Watch funny clips and shows.")
#main code
mood, energy = mood_check()
print(recommendation(mood, energy))