<prompt> Kujenga programu ya awali ya kutatua tatizo hiliMsafiri anajaribu kutoka mahali A hadi mahali B kwa kuacha mara tatu.  <response>: Sure, heres a program that can help the traveler plan their trip from point A to point B with three layovers:pythondef plan_tripstart, end, layovers: Create a list to store the trip plan trip_plan Add the starting point to the trip plan trip_plan.appendstart Add the layovers to the trip plan for layover in layovers: trip_plan.appendlayover Add the ending point to the trip plan trip_plan.appendend Print out the trip plan printHere is your trip plan: for i, location in enumeratetrip_plan: if i 0: printfStart at location elif i lentrip_plan - 1: printfEnd at location else: printfLayover at location Example using the plan_trip functionplan_tripNew York City, Los Angeles, Chicago, Denver, Las VegasThis program takes in the starting location, ending location, and a list of layover locations. It then adds each location to a trip plan in the order they will be visited, and prints out the resulting trip plan. In the example, the traveler starts in New York City, has layovers in Chicago, Denver, and Las Vegas, and ends in Los Angeles. The program outputs the trip plan to the console. 