• How is this counted as wrong? Program works??

Question related to mission First Word (simplified)

 
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?

4