Seksjon 1. Kapittel 13
single
Challenge: Customer Segmentation Using Sets
Sveip for å vise menyen
Oppgave
Sveip for å begynne å kode
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).
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 13
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår