Week 7
How to generate shows.db
from Favorite TV Shows - Form Responses 1.csv
-
Log into ide.cs50.io using your GitHub account.
-
In your terminal window, type
wget https://cdn.cs50.net/2020/fall/lectures/7/src7.zip
followed by Enter in order to download a Zip file of lecture’s source code into your IDE.
-
In your terminal window, type
unzip src7.zip
followed by Enter to unzip (i.e., decompress) that Zip file.
-
In your terminal window, type
cd src7/favorites/
followed by Enter in order to “change directory” into
src2/favorites/
. -
And then:
- To generate the lecture’s first version of
shows.db
, executesqlite3 shows.db
, followed by.mode csv
and then.import "Favorite TV Shows - Form Responses 1.csv"
. - To generate the lecture’s second version of
shows.db
, executepython favorites8.py
.
- To generate the lecture’s first version of
- Lecture
- Notes
- Slides
- Source Code
- Video
- Quiz 7
- Shorts
- Lab 7
- Problem Set 7