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

Aquí aparecerá el resultado de la ejecución del código

Tests12
Visible tests
Prueba oculta 7
Prueba oculta 8
Prueba oculta 9
Prueba oculta 10
Prueba oculta 11
Prueba oculta 12

They run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.

Focus radio
Paused · SomaFM · Fluid