Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.89 KB

README.md

File metadata and controls

33 lines (20 loc) · 1.89 KB

Recursion Lab

A free, independent study tool for UC Berkeley CS 61A exams and quizzes. Practice recursion and iteration with interactive Python exercises, editable doctests, and hints. This only covers recursion and a few other broader, related topics. Feel free to add onto this project or request any additional lessons.

Open Recursion Lab in your browser

To open the lab in a new tab from GitHub, Ctrl-click the link (Command-click on macOS).

RecursionLab homepage showing the lesson grid and profile links

Run locally

  1. Install Python 3 if you don't already have it.

  2. On this repository's GitHub page, select Code → Download ZIP, then unzip it. You can also clone it with git clone https://github.com/Ruthvik102008/RecursionLab.git.

  3. Open a terminal in the extracted or cloned folder, where README.md is located. Run the command for your system:

    System Command
    Windows py -3 -m http.server 8000 --bind 127.0.0.1
    macOS or Linux python3 -m http.server 8000 --bind 127.0.0.1

    On Windows, if py is unavailable and python --version reports Python 3, use python -m http.server 8000 --bind 127.0.0.1.

  4. Keep the terminal open and visit Recursion Lab in a current browser. Press Ctrl+C in the terminal when you're done.

Use the local URL so the browser can load the Python worker and exercises. If port 8000 is already in use, choose another port in both the command and the URL. Keep using the same browser profile and URL to retain your saved work.

How it works

The app runs Python in your browser through Pyodide. Internet access is needed to load the Python runtime and open linked videos. Drafts and progress are stored in your browser.

Course references and videos are credited in the lesson notes.