4 types of data that Pyret understands.
What are NUMBERS, "STRINGS", BOOLEANS AND IMAGES.
A vertical arrangement of data in a table.
What is a column?
The values that a function takes in is called the ______________ and the values that it produces is called the ___________.
For the pie chart function, it's TABLE, COLUMN and then IMAGE.
What are the DOMAIN and RANGE?
Tell pyret to tell you what is in the pct-obese column for the row defined as BX.
BX["pct-obese"]
Define (give a nickname to) a solid, green triangle of size 30 pixel as gt.
gt = triangle(30, solid, "green")
A programming language that allows us to communicate with the computer.
What is pyret?
The code you would write if you wanted to know how many quarterbacks (QB) are in the "position" column of the NFL-table.
What is count(NFL-table, "position")?
It's like a verb, something the computer does. It takes in values and produces an output.
What is a FUNCTION?
Using the countries table, write the code to create a scatter plot that explores the correlation between the gdp of a country (explanatory variable) and the median life expectancy of that country(response variable). Label the points with the country name.
scatter-plot(countries-table, "gdp", "median-life-expectancy", "country")
The error in this code:
rhombus(100, 45, outline, pink)

What is the strings are missing quotation marks?
Zip Code, Species, Fixed, Gender, Sneaker Brand are this type of data
What is Categorical Data?
The code that will put the NBA-Table in order from oldest to youngest player.
What is sort(NBA-Table, "Age", false)?
The Domain of the radial-star function

What is Number, Number, Number, String, String?
The slope of this line is ______________.
For every cm increase in arm span, we expect a ____________ cm increase/decrease in height.

0.95
The definition of a function called name-color, which makes an image of your name at size 50 in whatever color is given.
fun name-color(color): text("yourname", 50, color) end
Values that MEASURE how much of something there is are called ___________, while values that DESCRIBE something with a name or label are called ____________________.
What are QUANTITATIVE DATA and CATEGORICAL DATA?
The code to find the first three rows of the animals-table listed in alphabetical order by name.
What is first-n-rows(sort(animals-table, "name", true), 3)?
The code for a blue cylinder with a width of 10 and a height of 25.


The definition of a function called species-tag, which takes in a row from the Animals-table and draws its species in red, 15px letters.
fun species-tag(r): text(r["species"], 15, "red") end
Define a function called days-to-adopt that will look in every row and turn the number of weeks it takes an animal to get adopted into days.
fun days-to-adopt(r): r["weeks"] * 7 end
A statement of the name, domain, and range of a function for computers to read so they can create an output
What is a CONTRACT?
The column with Booleans

What is ProBowl?
It's the code to rotate a 60 pixel, solid, red triangle 45 degrees.
The contract for a rotate is
#rotate :: (Number, Image) --> Image
The contract for triangle is
#triangle :: (Number, String, String) --> Image
What is rotate(45, triangle(60, "solid", "red"))?
How many centimeters tall do we expect a person with an arm span of 210 centimeters?

0.95(210) + 9.4 = 208.9 cm
When doing a linear regression, the correlation coefficient, r, tells us....
How spread out the data points are
How closely correlated the variables are
How confident we can be in our predictions