Human: Write me a Python function to divide string into list of lines. Assistant: 
Here is a Python function to divide string into list of lines

import re

def split_string(string):
    """
    Split string into list of lines
    :param string: string to be split
    :return: list of lines
    """
    lines = string.split('\n')
    return lines

# Enter the string
string = "Hello\nWorld"

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

#Example Output
# ['Hello', 'World']

#Remember to inspect code for bugs.