Light Mode
Dark Mode
It's give a right solution but checkio don't take.
def first_word(text):
    ans = '"'
    for i in text:
        if i not in ' .",':
            ans += i
        if i in ' ,.' and len(ans) > 0:
            ans += '"'
            return ans
print(first_word(input()), "Hello" == "Hello")
Created: April 13, 2022, 6:24 p.m.
Updated: July 23, 2023, 8:29 a.m.
1
14
User avatar
Yaroslav_13333