Section 1. Chapitre 13
single
Challenge: Customer Segmentation Using Sets
Glissez pour afficher le menu
Tâche
Glissez pour commencer à coder
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:
- Сonvert lists to sets to remove duplicates.
- Find all unique customers.
- Identify customers who shopped in both categories.
- Identify customers who are new only (not repeat customers).
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 13
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion