Back to cs230 ยท All courses

Data Files

Every file the lectures read.

Download every file (data.zip)

Unzip data.zip next to your program. It makes the data folder from Files for Today, with months inside.

To look at one file, click its name. To download just that file, click the arrow beside it.

The data Folder

From Exceptions and Files.

measures.txt
10.1
9.9
9.8

The last line is blank.

names.txt
Ada
Grace
Alan
prices.csv
item,price
coffee,3.00
bagel,2.50
tea,n/a
muffin,2.80
juice,4.00
products.csv

From the Dictionaries and Sets Cheat Sheet.

product-id,division,price
P-001,diva,5.50
P-001x,diva,5.95
P-002,diva,6.50
P-002x,diva,6.95
P-010,divb,10.25
P-010x,divb,10.75
Q-011,divb,11.50
Q-011x,divb,11.95
sales.csv
product,date,price,quantity
P-01,2023-01-01,9.95,5
P-02,2023-01-02,10.50,2
P-01,2023-01-03,9.85,4
P-02,2023-01-04,10.60,3
P-01,2023-01-05,9.95,1
scores.csv
name,score
Ada,90
Grace,85
Alan,77
Linus,100
Barbara,68

The data/months Folder

From The os Module.

2023-01.csv
product,date,price,quantity
P-01,2023-01-04,9.95,3
P-02,2023-01-11,10.50,2
P-01,2023-01-19,9.95,4
2023-02.csv
product,date,price,quantity
P-02,2023-02-02,10.50,5
P-01,2023-02-15,9.85,2
2023-03.csv
product,date,price,quantity
P-01,2023-03-03,9.95,6
P-02,2023-03-09,10.60,1
P-02,2023-03-27,10.60,4