Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
workbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs205
workbook
Commits
b0873d17
Commit
b0873d17
authored
8 years ago
by
Wade Fagen-Ulmschneider (waf)
Browse files
Options
Downloads
Patches
Plain Diff
activity1
parent
c65dc1bf
Branches
activity1
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
activity1/py/compute.py
+18
-0
18 additions, 0 deletions
activity1/py/compute.py
activity1/res/.keep
+1
-0
1 addition, 0 deletions
activity1/res/.keep
with
19 additions
and
0 deletions
activity1/py/compute.py
0 → 100644
+
18
−
0
View file @
b0873d17
#
# 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
)
This diff is collapsed.
Click to expand it.
activity1/res/.keep
0 → 100644
+
1
−
0
View file @
b0873d17
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment