SlideShare a Scribd company logo
1 of 2
Download to read offline
python only
List the eligible drivers
a function listRoadTests that determines which requests are eligible to proceed taking the road
test using the isEligible function created in Part 1 , and returns a list of eligible drivers
information following the template below:
<person> is allowed to take the <class> road test.
For example, "John" with license class "G1" and 14 months experience wishes to take the "G2"
road test, John's information would be included in the returning list as a string formatted to John
is allowed to take the G2 road test. The returning list will only contain the information about
those eligible to take the road test they applied for.
Your function should:
Receive 4 arguments:
people: a list of String values with names of the drivers
license: a list of String values with the driver's current class
period: a list of Integer values with duration in months that the person has held their current
license for
applied: a list of String values with the class the driver is applying for
For each person in the list, check if they are eligible to take the road test they applied for using
the isEligible function from part 1 .
For a eligible drivers, you will insert their formatted information into a list (that will be returned
by the function)
Returns a list of String values
This list will include only the information of eligible drivers using the format given in this part 2.
all your arguments are lists that have respective information of a given driver at the same list
position. For example, ["John", "Arya"], ["G1", "G2"], [16, 28], ["G", "G"] you can interpret that
John has a G1 license for 16 months and is applying to take a G class road test; and that Arya has
a G2 license for 28 months and is applying to take a G class road test. See the first test case to
find out the resulting list.
Also, please provide 5 extra test cases like the ones shown:
[ ]:
[19]:

More Related Content

More from 3rdeyesolutions

python code plz Task 2 1- Create a list with the digits in your studen.pdf
python code plz Task 2 1- Create a list with the digits in your studen.pdfpython code plz Task 2 1- Create a list with the digits in your studen.pdf
python code plz Task 2 1- Create a list with the digits in your studen.pdf3rdeyesolutions
 
PYTHON - time and space complexity for the next function- def some_fun.pdf
PYTHON - time and space complexity for the next function- def some_fun.pdfPYTHON - time and space complexity for the next function- def some_fun.pdf
PYTHON - time and space complexity for the next function- def some_fun.pdf3rdeyesolutions
 
Python - Explain the concept- and why you found it interesting- How w.pdf
Python -  Explain the concept- and why you found it interesting- How w.pdfPython -  Explain the concept- and why you found it interesting- How w.pdf
Python - Explain the concept- and why you found it interesting- How w.pdf3rdeyesolutions
 
Put the steps of endochondral ossification in the correct order- Your.pdf
Put the steps of endochondral ossification in the correct order- Your.pdfPut the steps of endochondral ossification in the correct order- Your.pdf
Put the steps of endochondral ossification in the correct order- Your.pdf3rdeyesolutions
 
Put the events of HIV infection in the correct order- HIV fuses to the.pdf
Put the events of HIV infection in the correct order- HIV fuses to the.pdfPut the events of HIV infection in the correct order- HIV fuses to the.pdf
Put the events of HIV infection in the correct order- HIV fuses to the.pdf3rdeyesolutions
 
Put the following events in the proper order of occurrence when RIK pa.pdf
Put the following events in the proper order of occurrence when RIK pa.pdfPut the following events in the proper order of occurrence when RIK pa.pdf
Put the following events in the proper order of occurrence when RIK pa.pdf3rdeyesolutions
 
Put an I if the term refers to Innate Immunity Put an A if the term re.pdf
Put an I if the term refers to Innate Immunity Put an A if the term re.pdfPut an I if the term refers to Innate Immunity Put an A if the term re.pdf
Put an I if the term refers to Innate Immunity Put an A if the term re.pdf3rdeyesolutions
 
Pure tone averages (PTAs) give us information about- how well a person.pdf
Pure tone averages (PTAs) give us information about- how well a person.pdfPure tone averages (PTAs) give us information about- how well a person.pdf
Pure tone averages (PTAs) give us information about- how well a person.pdf3rdeyesolutions
 
public class EllipsoidList { private String list- private Array.pdf
public class EllipsoidList {     private String list-    private Array.pdfpublic class EllipsoidList {     private String list-    private Array.pdf
public class EllipsoidList { private String list- private Array.pdf3rdeyesolutions
 
Public Administration -what kind of challenges does the Department of.pdf
Public Administration -what kind of challenges does the Department of.pdfPublic Administration -what kind of challenges does the Department of.pdf
Public Administration -what kind of challenges does the Department of.pdf3rdeyesolutions
 
public class ImpPythTripEx public static double---- triples - new d.pdf
public class ImpPythTripEx    public static double---- triples - new d.pdfpublic class ImpPythTripEx    public static double---- triples - new d.pdf
public class ImpPythTripEx public static double---- triples - new d.pdf3rdeyesolutions
 
public class Integenthalysis public static doumle analyreints(iet max-.pdf
public class Integenthalysis public static doumle analyreints(iet max-.pdfpublic class Integenthalysis public static doumle analyreints(iet max-.pdf
public class Integenthalysis public static doumle analyreints(iet max-.pdf3rdeyesolutions
 
PT ANRJ issues a IDR 450 million IPO priced at IDR 130 per share- and.pdf
PT ANRJ  issues a IDR 450 million IPO priced at IDR 130 per share- and.pdfPT ANRJ  issues a IDR 450 million IPO priced at IDR 130 per share- and.pdf
PT ANRJ issues a IDR 450 million IPO priced at IDR 130 per share- and.pdf3rdeyesolutions
 
public class DimmableFloorLamp extends FloorLamp implements Dimmable - (1).pdf
public class DimmableFloorLamp extends FloorLamp implements Dimmable - (1).pdfpublic class DimmableFloorLamp extends FloorLamp implements Dimmable - (1).pdf
public class DimmableFloorLamp extends FloorLamp implements Dimmable - (1).pdf3rdeyesolutions
 
Proxemics refers to the- a- the role of videography and photography in.pdf
Proxemics refers to the- a- the role of videography and photography in.pdfProxemics refers to the- a- the role of videography and photography in.pdf
Proxemics refers to the- a- the role of videography and photography in.pdf3rdeyesolutions
 
Psychologists have studied identical twins and have identified specifi.pdf
Psychologists have studied identical twins and have identified specifi.pdfPsychologists have studied identical twins and have identified specifi.pdf
Psychologists have studied identical twins and have identified specifi.pdf3rdeyesolutions
 
Pruvided helow are the Iether stades for thiee sectans of MATH 245 tha.pdf
Pruvided helow are the Iether stades for thiee sectans of MATH 245 tha.pdfPruvided helow are the Iether stades for thiee sectans of MATH 245 tha.pdf
Pruvided helow are the Iether stades for thiee sectans of MATH 245 tha.pdf3rdeyesolutions
 
PSLO3 available evidence- A competent nurse utilizes in formation tech.pdf
PSLO3 available evidence- A competent nurse utilizes in formation tech.pdfPSLO3 available evidence- A competent nurse utilizes in formation tech.pdf
PSLO3 available evidence- A competent nurse utilizes in formation tech.pdf3rdeyesolutions
 
Provider of Care - Diagnostic and Patient Monitoring- - Provider of Ca.pdf
Provider of Care - Diagnostic and Patient Monitoring- - Provider of Ca.pdfProvider of Care - Diagnostic and Patient Monitoring- - Provider of Ca.pdf
Provider of Care - Diagnostic and Patient Monitoring- - Provider of Ca.pdf3rdeyesolutions
 
Provide code that achieves the following objectives- 1- -1pt- - Declar.pdf
Provide code that achieves the following objectives- 1- -1pt- - Declar.pdfProvide code that achieves the following objectives- 1- -1pt- - Declar.pdf
Provide code that achieves the following objectives- 1- -1pt- - Declar.pdf3rdeyesolutions
 

More from 3rdeyesolutions (20)

python code plz Task 2 1- Create a list with the digits in your studen.pdf
python code plz Task 2 1- Create a list with the digits in your studen.pdfpython code plz Task 2 1- Create a list with the digits in your studen.pdf
python code plz Task 2 1- Create a list with the digits in your studen.pdf
 
PYTHON - time and space complexity for the next function- def some_fun.pdf
PYTHON - time and space complexity for the next function- def some_fun.pdfPYTHON - time and space complexity for the next function- def some_fun.pdf
PYTHON - time and space complexity for the next function- def some_fun.pdf
 
Python - Explain the concept- and why you found it interesting- How w.pdf
Python -  Explain the concept- and why you found it interesting- How w.pdfPython -  Explain the concept- and why you found it interesting- How w.pdf
Python - Explain the concept- and why you found it interesting- How w.pdf
 
Put the steps of endochondral ossification in the correct order- Your.pdf
Put the steps of endochondral ossification in the correct order- Your.pdfPut the steps of endochondral ossification in the correct order- Your.pdf
Put the steps of endochondral ossification in the correct order- Your.pdf
 
Put the events of HIV infection in the correct order- HIV fuses to the.pdf
Put the events of HIV infection in the correct order- HIV fuses to the.pdfPut the events of HIV infection in the correct order- HIV fuses to the.pdf
Put the events of HIV infection in the correct order- HIV fuses to the.pdf
 
Put the following events in the proper order of occurrence when RIK pa.pdf
Put the following events in the proper order of occurrence when RIK pa.pdfPut the following events in the proper order of occurrence when RIK pa.pdf
Put the following events in the proper order of occurrence when RIK pa.pdf
 
Put an I if the term refers to Innate Immunity Put an A if the term re.pdf
Put an I if the term refers to Innate Immunity Put an A if the term re.pdfPut an I if the term refers to Innate Immunity Put an A if the term re.pdf
Put an I if the term refers to Innate Immunity Put an A if the term re.pdf
 
Pure tone averages (PTAs) give us information about- how well a person.pdf
Pure tone averages (PTAs) give us information about- how well a person.pdfPure tone averages (PTAs) give us information about- how well a person.pdf
Pure tone averages (PTAs) give us information about- how well a person.pdf
 
public class EllipsoidList { private String list- private Array.pdf
public class EllipsoidList {     private String list-    private Array.pdfpublic class EllipsoidList {     private String list-    private Array.pdf
public class EllipsoidList { private String list- private Array.pdf
 
Public Administration -what kind of challenges does the Department of.pdf
Public Administration -what kind of challenges does the Department of.pdfPublic Administration -what kind of challenges does the Department of.pdf
Public Administration -what kind of challenges does the Department of.pdf
 
public class ImpPythTripEx public static double---- triples - new d.pdf
public class ImpPythTripEx    public static double---- triples - new d.pdfpublic class ImpPythTripEx    public static double---- triples - new d.pdf
public class ImpPythTripEx public static double---- triples - new d.pdf
 
public class Integenthalysis public static doumle analyreints(iet max-.pdf
public class Integenthalysis public static doumle analyreints(iet max-.pdfpublic class Integenthalysis public static doumle analyreints(iet max-.pdf
public class Integenthalysis public static doumle analyreints(iet max-.pdf
 
PT ANRJ issues a IDR 450 million IPO priced at IDR 130 per share- and.pdf
PT ANRJ  issues a IDR 450 million IPO priced at IDR 130 per share- and.pdfPT ANRJ  issues a IDR 450 million IPO priced at IDR 130 per share- and.pdf
PT ANRJ issues a IDR 450 million IPO priced at IDR 130 per share- and.pdf
 
public class DimmableFloorLamp extends FloorLamp implements Dimmable - (1).pdf
public class DimmableFloorLamp extends FloorLamp implements Dimmable - (1).pdfpublic class DimmableFloorLamp extends FloorLamp implements Dimmable - (1).pdf
public class DimmableFloorLamp extends FloorLamp implements Dimmable - (1).pdf
 
Proxemics refers to the- a- the role of videography and photography in.pdf
Proxemics refers to the- a- the role of videography and photography in.pdfProxemics refers to the- a- the role of videography and photography in.pdf
Proxemics refers to the- a- the role of videography and photography in.pdf
 
Psychologists have studied identical twins and have identified specifi.pdf
Psychologists have studied identical twins and have identified specifi.pdfPsychologists have studied identical twins and have identified specifi.pdf
Psychologists have studied identical twins and have identified specifi.pdf
 
Pruvided helow are the Iether stades for thiee sectans of MATH 245 tha.pdf
Pruvided helow are the Iether stades for thiee sectans of MATH 245 tha.pdfPruvided helow are the Iether stades for thiee sectans of MATH 245 tha.pdf
Pruvided helow are the Iether stades for thiee sectans of MATH 245 tha.pdf
 
PSLO3 available evidence- A competent nurse utilizes in formation tech.pdf
PSLO3 available evidence- A competent nurse utilizes in formation tech.pdfPSLO3 available evidence- A competent nurse utilizes in formation tech.pdf
PSLO3 available evidence- A competent nurse utilizes in formation tech.pdf
 
Provider of Care - Diagnostic and Patient Monitoring- - Provider of Ca.pdf
Provider of Care - Diagnostic and Patient Monitoring- - Provider of Ca.pdfProvider of Care - Diagnostic and Patient Monitoring- - Provider of Ca.pdf
Provider of Care - Diagnostic and Patient Monitoring- - Provider of Ca.pdf
 
Provide code that achieves the following objectives- 1- -1pt- - Declar.pdf
Provide code that achieves the following objectives- 1- -1pt- - Declar.pdfProvide code that achieves the following objectives- 1- -1pt- - Declar.pdf
Provide code that achieves the following objectives- 1- -1pt- - Declar.pdf
 

Recently uploaded

Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 

Recently uploaded (20)

Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 

python only List the eligible drivers a function listRoadTests that de.pdf

  • 1. python only List the eligible drivers a function listRoadTests that determines which requests are eligible to proceed taking the road test using the isEligible function created in Part 1 , and returns a list of eligible drivers information following the template below: <person> is allowed to take the <class> road test. For example, "John" with license class "G1" and 14 months experience wishes to take the "G2" road test, John's information would be included in the returning list as a string formatted to John is allowed to take the G2 road test. The returning list will only contain the information about those eligible to take the road test they applied for. Your function should: Receive 4 arguments: people: a list of String values with names of the drivers license: a list of String values with the driver's current class period: a list of Integer values with duration in months that the person has held their current license for applied: a list of String values with the class the driver is applying for For each person in the list, check if they are eligible to take the road test they applied for using the isEligible function from part 1 . For a eligible drivers, you will insert their formatted information into a list (that will be returned by the function) Returns a list of String values This list will include only the information of eligible drivers using the format given in this part 2. all your arguments are lists that have respective information of a given driver at the same list position. For example, ["John", "Arya"], ["G1", "G2"], [16, 28], ["G", "G"] you can interpret that John has a G1 license for 16 months and is applying to take a G class road test; and that Arya has a G2 license for 28 months and is applying to take a G class road test. See the first test case to find out the resulting list. Also, please provide 5 extra test cases like the ones shown: