def get_driver_list(pd_file_names):
    """

    :Arguments:

    1. pd_file_names (list[str]) = All the files names obtained from the
    ProductDrivers directory of the repository that is temporarily cloned
    into the user's machine

    :Returns:

    2. driver_list (list[str]) = This list contains serial numbers and the
    driver names alternately

    eg: [1, driver_name_1, 2, driver_name_2, 3, driver_name_3]

    """
    subfiles = []
    driver_list = []
    for subfile in pd_file_names:
        if subfile.endswith('.py'):
            subfiles.append(subfile)
    for i, subfile in zip(range(0, len(subfiles)), subfiles):
        driver_list.append(str(i+1))
        driver_list.append(subfile)
    return driver_list