Search
You can find the results of your search below.
Fulltext results:
- asmt2
- 3> <ul> <li>Create a new file on <a href="https://code.pyret.org/">Pyret</a>.</li> <li>Unlike with Assig... examples for each function you implement using a <code>where</code> block. Here is a sample:</li> </ul> <pre><code>fun <span class="hljs-keyword">add</span><span class="b
- lab3.html
- ng helper functions</li> <li>Filtering data with <code>filter-with</code></li> <li>Writing nested functions</li> <li>Adding a column to a table</li> <li>Summa... each candy. Then, they compiled a data-set with <code>Number</code> attributes like the winning percentage, relative price, and sugar percentage, and also <c
- lab4
- >To import the spreadsheet, include the following code at the top of your program. You will put the <code>ssid</code> of your copy of the spreadsheet in your code below. </p> <p><strong>Note</strong>: The highlighted po
- asmt3
- ng>Hint</strong>: Be sure you have the necessary <code>include</code> expressions!</p> <h2 id="part-2-convert-times-to-minutes">Part 2: Convert times to minut... </p> <p><strong>Task</strong>: Design a function <code>time-str-to-minutes</code> that takes a time as a string (like those in the table) and converts it to t
- lab6
- ones that are very similar (e.g., ''my-sum''). <code> fun my-product(lst :: List<Number>) -> Number: ... is ... my-product([list: 5, 2, 3]) is ... end </code> Trace the execution of the ''my-product([list: ... utions as comments in your file in this format: <code> #| my-product([list: 5, 2, 3]): lst is [list: 5,... calls my-product(empty) return value is ... |# </code> ====== Exercise 2: sum-of-cubes ===== Fill in
- lab2
- ====== Lab 2: Conditionals and Reading Code ====== ~~NOTOC~~ 10 September 2021 ===== Today's lab ====... he function is called. For example, this is valid code: <code> number = 111 if number == 111: "Yay" else: "Nay" end </code> ==== Part 2 ==== Your friend came up with an
- lab1
- with * your new CS Linux account, * using the code.pyret.org (CPO) programming environment, and * ... efox (or the browser of your choice). * Enter ''code.pyret.org'' in the address bar. * Click "Sign i... xperiment. * In the interactions window, type:<code> ››› 1 </code> and press enter. This gets evaluated and -- fascinatingly -- the result is also the numb
- top
- ===== Computing environments ===== * [[https://code.pyret.org/|CPO]] -- Pyret * Python /**** ## A... ou are not permitted to look at another student’s code or to talk about assignments in terms of code or pseudocode. In addition, you must cite any books, arti... . In particular, note that: 1. You may not copy code written by anyone else (e.g., a classmate, a frie
- lab7
- ul> <h2 id="setup">Setup</h2> <p>Create the file <code>lab07.arr</code> and copy/paste the following header comment into it:</p> <pre><code><span class="hljs-comment">#|</span> CMPU<span ... ame</span> |<span class="hljs-comment">#</span> </code></pre><p>As usual, ask your instructor or a coach
- week9
- * **//Welcome back!//** * CPO notes: [[https://code.pyret.org/editor#share=1LB4oJC68oWrf7tLFr0BYabhtmdtDHUUk&v=1904b2c | lecture15 code]] * [[https://www.cs.vassar.edu/~cs101/1/class/... te to write functions * CPO notes: [[https://code.pyret.org/editor#share=1oO4o-I8N2NRCzgsy3aNvwWfxB... g gossip (Rumor Mills) * CPO notes: [[https://code.pyret.org/editor#share=17JmkvWVeILmobvyXx5qLM_yU1
- asmt1
- library ===== Getting started ===== - Open code.pyret.org and ensure it's connected to your Googl... wire.com/c/G916D3D51|Campuswire]]. Don't post any code unless requested by the coaches or instructors, t... of office hours. ===== Assignment ===== Write code to generate four flags: - Madagascar \\ \\ {{m... png?nolink|Flag of Greenland}} \\ \\ Set up your code so that the four flags are output in the interact
- week5
- ed * sample questions shared in CPO [[https://code.pyret.org/editor#share=1yfp1-6cClELcAkfxSxPIDDDfc... Problem 5** (10 points) Reading and understanding code. Given a function: * indicate which tests p... or fail * briefly describe (in words, not code) what you would need to change to make all of the
- sidebar
- tps://dcic-world.org/|DCIC (Text)]] * [[https://code.pyret.org/|CPO (Pyret)]] * [[https://hackmd.io/... ers/1-hMLeiP5KMr69vn5sDGbfXgTvnea1YhO?usp=sharing|Code samples from lectures]] * [[week5 | Week 5 summary including midterm review ]] * [[https://code.pyret.org/editor#share=1yfp1-6cClELcAkfxSxPIDDDfc
- week1
- 5sDGbfXgTvnea1YhO?usp=sharing|Table example Pyret code]]. This was just a preview of coming attractions ... to do in a few weeks. Don't try to understand the code now. [[https://docs.google.com/presentation/d/1B
- week7
- bsFvRWzcAj5cFfmQuu-tzVZvFUrIZ4N/view?usp=sharing| code from lecture]] * Reminders: * [[https://... wgJeTALwSjnPYdhyCtuXgPK6EZWDZm/view?usp=sharing | code from lecture 14]] ==== Friday ==== * [[lab6