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
- 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
- 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
- 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
- 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
- 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, articles, websites, lectures, etc. that have helpe
- lab1
- your new CS Linux account, * using the https://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... ogramming! - In the interactions window, type:<code> ››› 1 </code> and press ''enter''. This gets evaluated and -- fascinatingly -- the result is also the
- 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
- week5
- technique) * viewable/runnable in [[https://code.pyret.org/editor#share=1Zxujjtn43efwWl1JYrL1_f03T... 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
- 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
- schedule
- Blue: Evaluation \\ CPO Lecture Notes\\ [[https://code.pyret.org/editor#share=1uhrWenNHfylOcYjvFV5cFpjgk... /10 \\ [[lab2|Lab 2]] \\ Conditionals and reading code ... LightGreen: Tables \\ CPO Lecture Notes [[https://code.pyret.org/editor#share=1nrKBR4HAiCHUn9yJqOPI1p4ys
- week9
- * **//Welcome back!//** * CPO notes: [[https://code.pyret.org/editor#share=1oO4o-I8N2NRCzgsy3aNvwWfxB... te to write functions * CPO notes: [[https://code.pyret.org/editor#share=1oO4o-I8N2NRCzgsy3aNvwWfxB... * {{ week9-rumor-mill.pdf }} * [[https://code.pyret.org/editor#share=1WB890mNU8eJemEM4Q1ievotJr
- week4
- * Marc's notes: viewable/runnable in [[https://code.pyret.org/editor#share=1Zxujjtn43efwWl1JYrL1_f03T... -09-22.pdf |PDF}}: viewable/runnable in [[https://code.pyret.org/editor#share=1Zxujjtn43efwWl1JYrL1_f03T
- week7
- list functions (begins on slide 47) * [[https://code.pyret.org/editor#share=1LCsCUkW_1DcR1bmV0PhKaUCyy... ay \\ \\ * {{ 2021-10-13.pdf }} * [[https://code.pyret.org/editor#share=1LCsCUkW_1DcR1bmV0PhKaUCyy
- week11
- entation, which affect how Python interprets your code. * (Click the gear icon in the upper right to... oblems we worked in class shared in CPO [[https://code.pyret.org/editor#share=1NyOE2fd8zVdjgvoonH-OP-nOu