from random import choice

exit_command = 'exit'


def get_weather_bot_response(user):
    bot_responses = {
        'sunny': ['Wear some sunglasses. ',
                  'Going to the pool would be nice today. ', 'Its really hot. '],

        'rainy': ['Better get an umbrella. ',
                  'You should stay inside. ', 'Dont get cold you might get sick. '],

        'smokey': ['California is on FIRE!! ', 'The air qulaity is horrible wear a mask. ',
                   'We need to fund ideas to stop climate change and stop big oil companies. '],

        'foggy': ['Kinda of chilly, better wear a light jacket. ',
                  'Be careful when driving. ', 'It might rain. '],

        'snowy': ['It would be nice to snowboard or ski. ',
                  'Snowball fights are always fun. ', 'Hot coco on snowy days is nice. ']
    }

    if user == 'sunny':
        return choice(bot_responses['sunny'])
    elif user == 'rainy':
        return choice(bot_responses['rainy'])
    elif user == 'smokey':
        return choice(bot_responses['smokey'])
    elif user == 'foggy':
        return choice(bot_responses['foggy'])
    elif user == 'snowy':
        return choice(bot_responses['snowy'])
    else:
        return('I dont have this weather in my database')


print(f'Hello, Im Weather Bot')
print(f'Type "EXIT" to quit out')

while True:
    user_input = input('Enter the weather: ')
    user = user_input.lower()

    if user == exit_command:
        break

    response = get_weather_bot_response(user)
    print(response)
