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
Prijavite se za ogled zgodovine oddaj
PrijavaPrijavite se za uporabo mentorja UI
PrijavaTests12
Visible tests
Skriti test 7
Skriti test 8
Skriti test 9
Skriti test 10
Skriti test 11
Skriti 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