Getting Started With Code

This page is part of our Getting Started unit. Head there to see more.

Ten Things

This is a paper exercise handed out in class. Here’s a digital copy.

VS Code Lecture Notes

Complete “Get Set Up Online” before continuing here.

  1. Grab a paper copy of the template for VS Code Lecture Notes (or print one from here).
  2. Complete the notes while you watch the entire VS Code Lecture (18 min).
  3. Pop into VS Code and try it yourself!

VS Code Practice

Kitchen

  1. Log in to VS Code.
  2. In the terminal type these commands, one line at a time:
wget https://github.com/woodstockcs/kitchen/archive/main.zip
unzip main.zip
mv kitchen-main kitchen
cd kitchen
  1. Type ls and look around the kitchen. If you see a cockroach, remove it. (There are 2 of them.)
  2. Move all the files into their correct folders.
  3. Make a new directory called closet alongside the fridge and freezer. This means that ls should show: closet freezer fridge
  4. Create three new files in the closet. Give them a .txt extension, like pasta.txt

Hello

  1. Type cd. This takes you to your home directory, no matter where you are.
  2. Type ls to confirm. You should see just the kitchen directory.
  3. Make a new directory called 1-python. (that’s a ONE, not an L).
  4. cd into that directory and type code hello.py.
  5. Write a short python program that prints hello world. (Feel free to add a creative touch.)

Games

Cowsay

  1. In a terminal type these commands, one line at a time:
   cd
   sudo apt-get update
   sudo apt-get install cowsay
   cowsay Mr. Smith rocks.
   cowsay Huh...