You are viewing a single comment's thread from:
RE: Payment for Coding done
Function to find the cheapest flight and its details
def find_cheapest_flight(flight_data):
cheapest_flight = min(flight_data, key=lambda x: x["price"])
return cheapest_flight