Skip to content

Commit

Permalink
add in a nutshell to notes pages (see #2395)
Browse files Browse the repository at this point in the history
  • Loading branch information
flannery-denny committed Feb 12, 2025
1 parent 7aa4393 commit 0c34a59
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Introduction to Programming
= Introduction to Programming in a Nutshell

The *Editor* is a software program we use to write Code. Our Editor allows us to experiment with Code on the right-hand side, in the *Interactions Area*. For Code that we want to _keep_, we can put it on the left-hand side in the *Definitions Area*. Clicking the "Run" button causes the computer to re-read everything in the Definitions Area and erase anything that was typed into the Interactions Area.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Defining Values
= Defining Values in a Nutshell

In math, we use values, expressions and definitions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Introduction to Programming
= Introduction to Programming in a Nutshell

The *Editor* is a software program we use to write Code. Our Editor allows us to experiment with Code on the right-hand side, in the *Interactions Area*. For Code that we want to _keep_, we can put it on the left-hand side in the *Definitions Area*. Clicking the "Run" button causes the computer to re-read everything in the Definitions Area and erase anything that was typed into the Interactions Area.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Solving Word Problems
= Solving Word Problems in a Nutshell

Being able to see functions as Contracts, Examples or Definitions is like having three powerful tools. These representations can be used together to solve word problems! We call this *The Design Recipe*.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Defining Functions
= Defining Functions in a Nutshell

Functions can be viewed in _multiple representations_. You already know one of them: @vocab{Contracts}, which specify the Name, Domain, and Range of a function. Contracts are a way of thinking of functions as a _mapping_ between one set of data and another. For example, a mapping from Numbers to Strings:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Defining Functions
= Defining Functions in a Nutshell

Functions can be viewed in _multiple representations_. You already know one of them: @vocab{Contracts}, which specify the Name, Domain, and Range of a function. Contracts are a way of thinking of functions as a _mapping_ between one set of data and another. For example, a mapping from Numbers to Strings:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Piecewise Functions
= Piecewise Functions in a Nutshell


- Sometimes we want to build functions that act differently for different inputs. For example, suppose a business charges $10/pizza, but only $5/pizza for orders of six or more. How could we write a function that computes the total price based on the number of pizzas?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Introduction to Programming
= Introduction to Programming in a Nutshell

The *Editor* is a software program we use to write Code. Our Editor allows us to experiment with Code on the right-hand side, in the *Interactions Area*. For Code that we want to _keep_, we can put it on the left-hand side in the *Definitions Area*. Clicking the "Run" button causes the computer to re-read everything in the Definitions Area and erase anything that was typed into the Interactions Area.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Advanced Visualizations in a Nutshell
= Advanced Data Visualizations in a Nutshell
++++
<style>
body code { line-height: 16px !important; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Displaying Categorical Data
= Displaying Categorical Data in a Nutshell

@vspace{1ex}

Expand All @@ -8,6 +8,8 @@ Data Scientists use *data visualizations* to interpret data. You've probably see

When it comes to displaying *Categorical Data*, there are two visualizations that are especially useful:

@vspace{1ex}

1. *Bar charts* show the _count or percentage_ of rows in each category.
* Bar charts provide a visual representation of the frequency of values in a categorical column.
* Bar charts have a bar for every category in a column.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Introduction to Programming
= Introduction to Programming in a Nutshell

The *Editor* is a software program we use to write Code. Our Editor allows us to experiment with Code on the right-hand side, in the *Interactions Area*. For Code that we want to _keep_, we can put it on the left-hand side in the *Definitions Area*. Clicking the "Run" button causes the computer to re-read everything in the Definitions Area and erase anything that was typed into the Interactions Area.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Introduction to Programming
= Introduction to Programming in a Nutshell

The *Editor* is a software program we use to write Code. Our Editor allows us to experiment with Code on the right-hand side, in the *Interactions Area*. For Code that we want to _keep_, we can put it on the left-hand side in the *Definitions Area*. Clicking the "Run" button causes the computer to re-read everything in the Definitions Area and erase anything that was typed into the Interactions Area.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Correlations in Scatter Plots
= Correlations in Scatter Plots in a Nutshell

*Scatter Plots* can be used to show a relationship between two quantitative columns. Each row in the dataset is represented by a point, with one column providing the x-value and the other providing the y-value.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Histograms
= Histograms in a Nutshell

*From Dot Plots to Histograms*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Dot Plots: Distribution, Typicality, Variability
= Dot Plots: Distribution, Typicality, Variability in a Nutshell


A *dot plot* (below) is a data visualization consisting of data points plotted along a number line.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Categorical and Quantitative Data
= Categorical and Quantitative Data in a Nutshell

Many important questions (“What’s the best restaurant in town?”, “Is this law good for citizens?”, etc.) are answered with _data_. +

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Advanced Table Manipulation
= Advanced Table Manipulation in a Nutshell

You've seen that Pyret has special functions that we can use to manipulate Tables:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Defining Row Functions &amp; Using Table Functions
= Defining Row Functions &amp; Using Table Functions in a Nutshell

Pyret has special functions that we can use to manipulate Tables.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Histograms
= Histograms in a Nutshell
++++
<style>
.last-list li {min-height: 80px;}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Defining Table Functions
= Defining Table Functions in a Nutshell
++++
<style>
body.LessonNotes li { margin-bottom: 5px; }
Expand Down

0 comments on commit 0c34a59

Please sign in to comment.