Editor

Canteen Sales on Monday

Data questions · Beginner · about 3 min

canteen_monday.csv lists each item the school canteen sells and how many were sold on Monday. Set answer to the total number of items sold that day.

Example

The first lines of canteen_monday.csv:

item,sold
sandwich,42
samosa,35
canteen_monday.csv · 8 rows
itemsold
sandwich42
samosa35
fruit cup18
juice51
muffin27
idli22
popcorn30
milk24
import pandas as pd
df = pd.read_csv("canteen_monday.csv")
answer = None
The solution opens after your first Check.