Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Analyze Customer Engagement | Customer Data Analysis Essentials
Practice
Projects
Quizzes & Challenges
Quizer
Challenges
/
Python for Customer Success Managers
Seksjon 1. Kapittel 5
single

single

bookChallenge: Analyze Customer Engagement

Sveip for å vise menyen

Analyzing engagement metrics is a core responsibility for Customer Success Managers. By understanding how often customers use your product and interact with support, you can proactively identify those who might need more attention or are at risk of churning. Metrics such as login frequency and support ticket submissions offer clear signals of customer health and satisfaction. Regularly reviewing these numbers helps you prioritize outreach and tailor your engagement strategies for maximum impact.

12345678
# Sample customer activity data: each dictionary contains a customer's name, number of logins, and support tickets customer_activities = [ {"name": "Alice", "logins": 12, "tickets": 1}, {"name": "Bob", "logins": 7, "tickets": 3}, {"name": "Carla", "logins": 15, "tickets": 0}, {"name": "David", "logins": 5, "tickets": 2}, {"name": "Ella", "logins": 9, "tickets": 1} ]
copy

To tackle this analysis, you will work with a list of dictionaries, where each dictionary represents a customer's activity. Begin by calculating the average number of logins across all customers. Then, compare each customer's login count to this average to flag those who may be less engaged. Next, for each customer, compute an engagement score by subtracting the number of support tickets from the number of logins—a simple way to balance product usage with potential friction. Finally, assemble a summary report that lists each customer's name, their engagement score, and whether their login count falls below the average. Use Python's built-in functions and control structures to iterate through the data, perform calculations, and print the results in a clear, readable format.

Oppgave

Swipe to start coding

You are given a list of customer activity dictionaries, each containing a customer's name, number of logins, and number of support tickets. Your task is to process this data and generate a summary report.

  • Calculate the average number of logins across all customers.
  • For each customer, determine if their login count is below the average.
  • For each customer, compute their engagement score as the difference between logins and tickets.
  • For each customer, print a summary line with their name, engagement score, and a note if their login count is below average.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 5
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

some-alt