Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Customer Segmentation Using Sets | Section
Python Math Module Essentials: Trigonometry, Logarithms, and Constants - 1769704232288
Sección 1. Capítulo 13
single

single

Challenge: Customer Segmentation Using Sets

Desliza para mostrar el menú

Tarea

Desliza para comenzar a programar

A company wants to understand its customer base. You are given two lists of customer IDs:

  • new_customers: customers who made their first purchase this month;
  • repeat_customers: customers who have made purchases in previous months.

Follow this steps:

  1. Сonvert lists to sets to remove duplicates.
  2. Find all unique customers.
  3. Identify customers who shopped in both categories.
  4. Identify customers who are new only (not repeat customers).

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 13
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

some-alt