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

Hier verschijnt het resultaat van je code

Tests12
Visible tests
Verborgen test 7
Verborgen test 8
Verborgen test 9
Verborgen test 10
Verborgen test 11
Verborgen test 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