<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def splitstring(string, splitcharacter=' ', part=None):
 """ Split a string based on a character and get the parts as a list. :type string: string :param string: The string to split. :type splitcharacter: string :param splitcharacter: The character to split for the string. :type part: integer :param part: Get a specific part of the list. :return: The split string or a specific part of it :rtype: list or string ['hello', 'world', '!'] ['hello', 'world', '!'] ['hello', 'world', '!'] 'hello' """


    # If the part is empty
    if part in [None, '']:
        # Return an array of the splitted text
        return str(string).split(splitcharacter)

    # Return an array of the splitted text with a specific part
    return str(string).split(splitcharacter)[part]