Split the following string into words in Python
string = 'this_is_a_string_in_python'
# Split the string by '_' separator
words = string.split('_')

# Print each word separately
for word in words:
    print(word)