def complete_code(code):
    """
    Append stock code number with code type.
    :param code: code in digits as string
    :return: code in complete form
    """
    if len(code) < 6:
        return False
    elif code[0] == '6':
        return code + '.XSHG'
    elif code[0] in ['0', '3']:
        return code + '.XSHE'
    else:
        return False
