CSV Row Filter and Count
Beginner Mode

Start your terminal to use beginner mode.

Scenario

A CSV file containing customer data needs to be processed. You need to filter the data and generate a report showing the count of active customers.

Task

Write a Python script at /home/interview/process_customers.py that reads /home/interview/customers.csv, filters for customers with status "active", and writes the count to /home/interview/active_count.txt.

Terminal requires a larger screen

Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.

Linux Terminal Environment

Write and execute your solution in the terminal below.

Sign In

Track

Question Difficulty Company Access
Need more practice in this area? Explore more questions →