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

import re

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

# Enter the string
string = "dahlia is a beautiful flower"

# Calling the function
print((tokenize(string)))

#Example Output
# ['dahlia', 'is', 'a', 'beautiful', 'flower']

#Remember to inspect code for bugs.