def ship_name(fleet, designated_no):
    """Return ship's name for specified designated number
    from the fleet."""
    # has dictionary a key? Use syntax: key in dictionary
    if designated_no in fleet:
        return fleet[designated_no]