As a way to learn the basics of Pyret, we are asking you to implement and test certain functions. We strongly suggest that before you begin you start reading the course text’s chapter and look at the language tour, using the documentation for Pyret as needed. You will be writing your code online. We are not supporting any other usage modes.
To begin, please go to code.pyret.org and follow the instructions to connect your Brown Google drive.
Once connected, visit this link.
Save a copy to your Google Drive with an appropriate title.
We are asking you to implement and test the functions outlined in the file. Fill in the code and test blocks with your own implementations and test cases. As you fill out test cases, click the “Run” button to compile and execute your code. Pyret will report on the functionality of your code and tests. When you are done with this assignment, all of your test cases should pass. Be sure to cover edge cases and be confident that your code works on any input.
Feel free to use these assignments to explore Pyret’s built-in functions. See the documentation for reference. You should try to do each exercise both with and without built-ins: the former makes you more facile with the libraries, but the latter makes sure you aren’t completely dependent on them.
You do not need to submit your work, nor will it be graded. Rather, if you want help or feedback, please go to Hours. Show us how far you’ve gotten and we’ll help you make progress form there.