← Back to Home

Coding Exercises

Practice coding challenges for data analytics

👋

New to Coding? Start with our Guided Lessons!

These exercises assume you already know basic Python or SQL. If you're just starting out, we have a better place for you:

Go to Learn Coding (For Beginners) →

💻 Use the Code Playground to work on these exercises with instant code execution

BeginnerPython

Calculate Average Sales

Write a Python function to calculate the average of a list of sales numbers

Topics:
ListsFunctionsBasic Math
Start Exercise
BeginnerPython

Filter Products by Price

Filter a list of products to show only items above a certain price

Topics:
ListsFilteringDictionaries
Start Exercise
IntermediatePython

Data Cleaning Challenge

Remove null values and calculate statistics from messy data

Topics:
Data CleaningStatisticsList Comprehension
Start Exercise
IntermediatePython

Group Sales by Category

Aggregate sales data by product category and calculate totals

Topics:
GroupingAggregationDictionaries
Start Exercise
BeginnerSQL

SQL: Basic Queries

Write SELECT queries to retrieve employee data

Topics:
SELECTWHEREBasic SQL
Start Exercise
IntermediateSQL

SQL: Join Tables

Join employee and department tables to analyze organizational data

Topics:
JOINMultiple TablesAggregation
Start Exercise
AdvancedSQL

SQL: Window Functions

Use window functions to calculate running totals and rankings

Topics:
Window FunctionsRANKAdvanced SQL
Start Exercise
BeginnerJavaScript

Array Analytics

Use JavaScript array methods to analyze sales data

Topics:
Arraysmap/filter/reduceES6
Start Exercise
AdvancedPython

Time Series Analysis

Calculate monthly trends and growth rates from time series data

Topics:
Time SeriesTrendsAdvanced Analytics
Start Exercise
AdvancedPython

Customer Segmentation Logic

Categorize customers based on purchase history and demographics

Topics:
SegmentationLogicData Analysis
Start Exercise

💡 How to Practice Effectively

1️⃣Start with Fundamentals

Begin with beginner exercises to build confidence. Master the basics before moving to intermediate and advanced challenges.

2️⃣Try Before Looking

Attempt each exercise on your own first. Struggle is part of learning. Only check the solution after giving it a genuine try.

3️⃣Experiment and Modify

Don't just copy solutions. Experiment with different approaches, modify the code, and understand why it works.

4️⃣Practice Daily

Consistency is key. Try to solve at least one exercise per day. Regular practice builds muscle memory and problem-solving skills.