Getting on Colab

Welcome to the world's easiest homework assignment.

  1. 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.)
  2. 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.
  3. Click on "File" > "New notebook in Drive."
  4. Click the "+Text" button. In the little box, type this text:
  5. # 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
    
  6. Press Shift+Enter to tell Colab to "execute" (format) that text cell. Note how it put things in italics, bold, bulleted list, etc.
  7. Click the "+Code" button. In the little box, type this text:
  8. 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))
    
  9. Change the values of the variables (the part after the equals sign on the first two lines) to reflect your own reality.
  10. Press Shift+Enter to tell Colab to "execute" (run the code in) that code cell.
  11. 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.
  12. 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).
  13. Congratulations! Go grab a Coke.