human
tokenize string by spaces.
assistant
Here is a Python function to tokenize string by spaces

import tokenize

def tokenize(string: str) -> list:
    """Tokenize a string by spaces."""
    return string.split()

# Enter the string
string = "hello world"

# Calling the function
tokens = tokenize(string)

# Printing the tokens
print(tokens)

#Example Output
# ['hello', 'world']

#Remember to inspect code for bugs.