def first_word(text: str) -> str:
words = list(text.partition(' '))
print(words[0])
assert first_word('Lorem Ipsum dolor sit amet') == 'Lorem'
The program works fine, but any assertion attempts still count it as wrong even though it does as it's supposed to. Di I do anything wrong or is this an issue with the puzzle?
Created at: 2023/05/29 19:20; Updated at: 2023/05/29 20:01
The question is resolved.