Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Identify Top Products | Business Data Manipulation
Python for Business Analysts

bookChallenge: Identify Top Products

Understanding which products are driving the most revenue is crucial for business analysts. By identifying top performers, you can make informed recommendations about where to focus marketing efforts, allocate inventory, or adjust pricing strategies. This targeted approach helps businesses maximize returns and streamline resource allocation, ensuring that high-impact products receive the attention they deserve.

Tarefa

Swipe to start coding

Given a summary dictionary where each key is a product name and its value is the total revenue for that product, return a list of the top 3 products based on revenue, ordered from highest to lowest.

  • Sort the products in the dictionary by their revenue in descending order.
  • Select the names of the top 3 products after sorting.
  • Return a list containing these product names, ordered from highest to lowest revenue.
  • If there are fewer than 3 products, return all product names sorted by revenue.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 7
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Identify Top Products

Deslize para mostrar o menu

Understanding which products are driving the most revenue is crucial for business analysts. By identifying top performers, you can make informed recommendations about where to focus marketing efforts, allocate inventory, or adjust pricing strategies. This targeted approach helps businesses maximize returns and streamline resource allocation, ensuring that high-impact products receive the attention they deserve.

Tarefa

Swipe to start coding

Given a summary dictionary where each key is a product name and its value is the total revenue for that product, return a list of the top 3 products based on revenue, ordered from highest to lowest.

  • Sort the products in the dictionary by their revenue in descending order.
  • Select the names of the top 3 products after sorting.
  • Return a list containing these product names, ordered from highest to lowest revenue.
  • If there are fewer than 3 products, return all product names sorted by revenue.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 7
single

single

some-alt