def ob_build_xyz_string_from_list(atoms, coords):
    """
    Make a xyz string from atom and coordinate list.

    Args:
        atoms (list): Atom list of type ['H','C','H',...].
        coords (array): Coordinate list of shape (N,3).

    Returns:
        str: XYZ string for a xyz file.
    """
    xyz_str = str(int(len(atoms))) + "\n"
    for i in range(len(atoms)):
        xyz_str = xyz_str + "\n" + atoms[i] + " " + str(coords[i][0]) + " " + str(coords[i][1]) + " " + str(coords[i][2])
    return xyz_str