Ask LSBot

Code Reviews

Where to find LSBot Code Reviews

LSBot Code Reviews are available in three places:

  1. On assignments marked with the LSBot logo:

  2. On all exercises in Exercise Sets.

  3. On all Book Exercises.

For any other code, you can request a review in an LSBot conversation. Use Deep Dive Mode to get the same thorough review as the official submissions above.

Reviewing an Assignment

After completing a project, you'll see this button at the end of the assignment, which will take you to a form where you can submit your code for review.

Request an LSBot Code Review

You can also manually navigate to the lesson’s Discussions section to request an LSBot review.

Here's how it works:

  1. Go to the lesson’s Discussions tab.
  2. Click Post New Topic.
  3. Select Request an LSBot Code Review and choose the assignment. (You can also click the Request a Private LSBot Code Review button at the end of the project to skip these first three steps.)
  4. Provide LSBot with your code by either:

    1. Pasting your code directly into the text area and format it using Markdown.
    2. Pasting a GitHub URL that links to your project.
  5. Click Submit. LSBot will post your review in about a minute.

Submitting GitHub URLs

The GitHub URL you share can point to a) a single file, b) a directory if your project includes multiple files, or c) a repository, if you have an entire repository dedicated to the single project. For example, if you have a repository called "PY101" that contains a directory called "lesson_2" which is where you have your "Rock, Paper, Scissors" file, the GitHub URL you provide to LSBot would look something like this: https://github.com/janedoe/PY101/blob/master/lesson_2/rock_paper_scissors.py.

Make sure you're linking to a public repository.

If you've revised your code and want to share again, paste your GitHub URL in a comment and LSBot will know to re-fetch the updated content.

Here's a demo:

LSBot Code Review Demo


Reviewing an Exercise

In the last chapter, we discussed exercise hints. Anywhere you can request an exercise hint, you can also request a code review. LSBot will check your solution, suggest improvements, and answer any questions you have.

Reviews for Exercise Sets

To request an LSBot code review on an exercise from an exercise set, you need to:

  1. Open the exercise you want reviewed.
  2. Scroll to the Your Solution (Private) section.
  3. Provide LSBot with your code. Again, you have two options:
    1. Write or paste your solution, using markdown formatting, into the input box.
    2. Paste a GitHub URL that links directly to the file containing your exercise solution.
  4. Click Submit Solution + LSBot Review and confirm in the pop-up.

Your review is usually ready within a minute. You’ll get an email, or you can wait on the page for it to appear. You can also ask follow-up questions under LSBot’s review.

Here's a demo:

Requesting an LSBot Code Review for an Exercise

Why is there a "Submit Solution without LSBot" button? Use this if you just want to save your solution privately without a review. You can still request a review later by adding a comment.

Where can I share my solution and see other students' solutions? Scroll to Community Solutions to share your solution, browse others’ solutions, and join discussions.

Reviews for Book Exercises

When working through book exercises, you’ll see a drop-down labeled Ask LSBot for a Code Review. This form works just like we discussed above for exercise sets.

Here's a demo:

Getting an exercise review in a book

This conversation with LSBot is temporary. Sign up for free to save your conversations with LSBot.

Hi! I'm LSBot. I'm here to help you understand this chapter content with fast, focused answers.

Ask me about concepts, examples, or anything you'd like clarified from this chapter. I can explain complex topics, provide examples, or help connect ideas.

Want to know more? Refer to the LSBot User Guide.

This conversation with LSBot is temporary. Sign up for free to save your conversations with LSBot.

Hi! I'm LSBot. I'm here to help you think through this exercise by providing hints and guidance, without giving away the solution.

You can ask me about your approach, request clarification on the problem, or seek help when you feel stuck.

Want to know more? Refer to the LSBot User Guide.