Getting on Colab
Welcome to the world's easiest homework assignment.
- Go to Colab and create a
free account. (Recommendation: sign in with your Google account if you have
one, and then Colab will be able to access anything you store in Google
Drive.)
- Click on "Getting started" and read through the very quick and easy
notebook it shows you. You'll discover that not everything in Colab
looks identical to the screenshots in chapter 2 of the book, but that most of it
works pretty much the same way.
- Click on "File" > "New notebook in Drive."
- Click the "+Text" button. In the little box, type this text:
# Yay I'm on Colab!
I am _really_ excited for **DATA 101** class this semester, because:
* Stephen is awesome
* Data Science sounds fascinating
* Stephen is awesome
- Press Shift+Enter to tell Colab to "execute" (format) that text cell. Note
how it put things in italics, bold, bulleted list, etc.
- Click the "+Code" button. In the little box, type this text:
high_school_graduation = 2024
gap_years = 0
target_UMW_graduation = high_school_graduation + gap_years + 4
print("I'm hopin' to graduate in {}!".format(target_UMW_graduation))
- Change the values of the variables (the part after the equals sign on the
first two lines) to reflect your own reality.
- Press Shift+Enter to tell Colab to "execute" (run the code in) that code cell.
- Wait a moment for Colab to get its computational act together, and then
verify that you see an appropriate message immediately below this code
cell.
- Click on the words "Untitled1.ipynb" and change the name of this
notebook to something else (keep the .ipynb part: only change the text
before the dot).
- Congratulations! Go grab a Coke.