Chat with Bob

Bob replies to messages by simple rules, like a tiny chatbot with attitude. The function response receives a phrase hey_bob: return Sure. for a question, Whoa, chill out! for yelling, Calm down, I know what I'm doing! for a yelled question, and Fine. Be that way! for silence. In all other cases, Bob replies with Whatever..

Примеры

Ввод
"Tom-ay-to, tom-aaaah-to."
Вывод
"Whatever."
Ввод
"WATCH OUT!"
Вывод
"Whoa, chill out!"
Ввод
"Does this cryogenic chamber make me look fat?"
Вывод
"Sure."

Нужно реализовать

def response(hey_bob: str) -> str:

Теги

strings
PostgreSQLv16

Your code output will appear here

Visible tests
1
Input
"Tom-ay-to, tom-aaaah-to."
Expected"Whatever."
2
Input
"WATCH OUT!"
Expected"Whoa, chill out!"
3
Input
"Does this cryogenic chamber make me look fat?"
Expected"Sure."
4
Input
"WHAT'S GOING ON?"
Expected"Calm down, I know what I'm doing!"
5
Input
" "
Expected"Fine. Be that way!"
6
Input
"1, 2, 3"
Expected"Whatever."
Focus radio
Paused · SomaFM · Fluid