Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First_word solution in Uncategorized category for First Word (simplified) by Antoni_Wojcik
def first_word(text: str) -> str:
a = text.split(" ")[0]
return a
print("Example:")
print(first_word("Hello world"))
assert first_word("Hello world") == "Hello"
assert first_word("a word") == "a"
assert first_word("greeting from CheckiO Planet") == "greeting"
assert first_word("hi") == "hi"
print("The mission is done! Click 'Check Solution' to earn rewards!")
Nov. 21, 2022
Comments: