Chapter 13

How to Write and Run Code

Learning Objectives

Upon completing all the content in this chapter, you should be able to do the following:

  1. Write print statements
  2. Understand what syntax, comments and debugging are when you are coding
  3. Have a better understanding of how to navigate through the terminal

Key Terminology

Here is a list of the key terms throughout this chapter based on the page they first appear on. You should make note of these.

How to Write and Run Code

What is Code?

  1. code

Syntax Rules

  1. syntax

Comments

  1. comment

Output with print

  1. console
  2. newline

Fixing Errors in Your Code

  1. debugging

Terminal

What is a terminal anyways?

  1. graphical user interface (GUI)
  2. command line interface
  3. terminal
  4. shell

Filesystems and Paths

  1. filesystem
  2. directory
  3. subdirectory
  4. root directory
  5. parent directory
  6. absolute path
  7. relative path

How to do stuff in the terminal

  1. prompt