Search
You can find the results of your search below.
Fulltext results:
- 05 @courses:cs101-2022b:labs
- orking with both tables and lists. As you work on each part of the lab, you’ll practice breaking problem... </blockquote> <p>which takes in a table and, for each row, plots a dot on a map of Central Park, using ... To do that, we need a column giving the color for each point on the map. For the moment, let’s just pain... beled <code class="string">"color"</code> and set each row’s color to <code class="string">"black"</code
- 02 @courses:cs101-2022b:assignments
- nt">false</code>. Make sure to write examples for each function before you try writing the function body... itten:</p> <ul> <li>Did you write a docstring for each function?</li> <li>Do you have examples that demo... of <code>show-ad2</code>.</p> <p>The output from each function for each input should be surprising given the input. That is, an ad could seem perfect for the
- 05 @courses:cs101-2022b:assignments
- es per character</h2> <p>Let’s find out how much each character has to say! The ALL-CAPS names mark the beginning of each character’s spoken lines in the text, so finding ... p> <p>Because this involves a separate count for each character, this is best represented using a table... code class="string">"count"</code>, and a row for each character. For instance, two entries would be:</p
- 03 @courses:cs101-2022b:assignments
- that contains the number of hours of sunlight for each day.</p> <p>Remember: To do this, you’ll need to ... we’re ready to compute the hours of moonlight for each day in the table.</p> <p><strong>Task</strong>: M... hat contains the number of hours of moonlight for each day.</p> <p>Be sure you are starting with <code>c... n the table give a good label for the bars. Since each bar is for one day, they should be labeled with t
- 06 @courses:cs101-2022b:assignments
- ne a small example table with values that lead to each of the five decision nodes in the tree.</p> <h2 i... he average distance from a lake for the people in each table.</p></li> <li><p>An appropriate threshold w... You can do these three steps manually to compute each threshold, but I recommend writing a function to ... <code>DecisionTree</code> <code>net-dt</code> on each row.</p> <p><strong>Hint</strong>: Use a lambda e
- 03 @courses:cs101-2022b:labs
- more from our candy data.</p> <p>Suggestion: For each section, separate it from the next part by copy-a... ith a <code>where</code> block – and to do so for each of the subsequent functions you write.</p> <p>The... >Checkpoint</strong>: Call over a coach once you reach this point and talk over your code with them.</p>... o create a scatterplot that puts one attribute on each axis.</p> <p>We haven’t made plots in class yet,
- 06 @courses:cs101-2022b:labs
- >f</code> and <code>r</code> and the return value each time the function is called.</p> </div> <p>Write... lass="string">"Return the sum of the cube of each number in the list"</span> <span class="ke... -cubes</code> and fill in the <code>...</code> in each example with an appropriate expression showing ho... urn an image of bars of the given heights next to each other"</span> ... <span class="keyword">en
- 04 @courses:cs101-2022b:assignments
- o reflect? Provide an example from the dataset of each assumption you name and explain why the assumptio... task"><strong>Task</strong>: Count how many times each state occurs in the <code>people-us-states</code>... le, including writing docstrings and examples for each function. Review the <a href="https://www.cs.vass
- 01 @courses:cs101-2022b:labs
- opied and try writing new expressions to complete each of the tasks.</p> <p>See if you get the results y
- 02 @courses:cs101-2022b:labs
- to write tests for your function that address <em>each</em> category.</p> <h3 id="exercise-22-at-vassar
- 04 @courses:cs101-2022b:labs
- Going further</h2> <p>Congratulations! You have reached the end of lab. Here is an optional exercise in