diff --git a/activity1/py/compute.py b/activity1/py/compute.py new file mode 100644 index 0000000000000000000000000000000000000000..02871f7afade891514c3bdce16d405a2f59ed73d --- /dev/null +++ b/activity1/py/compute.py @@ -0,0 +1,18 @@ +# +# CS 205, Activity 1: Your Most Similar Classmate +# https://courses.engr.illinois.edu/cs199205/activity/1.php +# + +# Requires csv library +import csv + +# Reads CSV file into data +with open("res/cs205welcome_clean - Sheet1.csv") as f: + reader = csv.DictReader(f) + data = [row for row in reader] + +# Work with each row of data, one at a time +for row in data: + # Print out the name of the person for the current row + person = row["Name"] + print( person ) diff --git a/activity1/res/.keep b/activity1/res/.keep new file mode 100644 index 0000000000000000000000000000000000000000..8d1c8b69c3fce7bea45c73efd06983e3c419a92f --- /dev/null +++ b/activity1/res/.keep @@ -0,0 +1 @@ +