human
Python code to split string into list of words.
assistant
Here is a Python code to split string into list of words

import re

def split_string_into_list_of_words(string):
    """
    >>> split_string_into_list_of_words("Hello world!")
    ['Hello', 'world', '!']
    """
    return re.split(r'([.,!?\'":;)(])', string)

# Enter the string
string = "Hello world!"

# Calling the function
words = split_string_into_list_of_words(string)

# Printing the words
print(words)

#Example Output
# ['Hello world', '!', '']

#Remember to inspect code for bugs.