Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Engineering LibreTexts

2: Scripts

( \newcommand{\kernel}{\mathrm{null}\,}\)

So far we’ve typed all of our programs “at the prompt.” If you’re only writing a few lines, this isn’t so bad. But what if you’re writing a hundred? Retyping each line of code every time you want to change or test your program will be time-consuming and tedious. Luckily, you don’t have to. In this chapter, we’ll look at a way to run many lines at once: scripts.


This page titled 2: Scripts is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by Allen B. Downey (Green Tea Press) via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?