Skip to content

Analyzing unicorn company data

In this workspace, we'll be exploring the relationship between total funding a company receives and its valuation.

fruits_list = ['apple', 'mango', 'banana', 'grape', 'orange']


def third_smallest(fruits_list):
    sorted_list = sorted(fruits_list)
    if len(sorted_list) < 3:
        print('The list provided has less than three elements')
        return
    print("The 3rd smallest element in the list is:", sorted_list[2])
fruits_list = ['apple', 'mango', 'banana', 'grape', 'orange']


def third_smallest(fruits_list):
    sorted_list = sorted(fruits_list)
    if len(sorted_list) < 3:
        print('The list provided has less than three elements')
        return
    print("The 3rd smallest element in the list is:", sorted_list[2])
Open the video in a new tab