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
Logáil isteach chun stair na n-aighneachtaí a fheiceáil
Logáil isteachLogáil isteach chun an Meantóir IS a úsáid
Logáil isteachTests12
Visible tests
Tástáil fholaithe 7
Tástáil fholaithe 8
Tástáil fholaithe 9
Tástáil fholaithe 10
Tástáil fholaithe 11
Tástáil fholaithe 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