Information about cookies on this page

Our website uses cookies to ensure the functionality of the website, to collect and analyze information about the performance and usage of the website. Privacy Policy

  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in
  
  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in

Summary

In this lesson, you learned that:

  • Asked to fix your program, an AI fixes it, and you learn little from that. Instructions can make it your tutor: where to look and a hint, and the corrected code only when you ask for it. In an app, you write them once, and they go with every message.
  • Without instructions, say it in the message: explain the mistake and why, but don't fix it. A mistake you understand is one you'll spot in the next program, such as a function that prints its result instead of returning it.
  • Feedback on code you wrote teaches you most as a few things, the most important first, and no rewrite. You make the changes, and the AI can tell you whether you made them well.
  • A quiz shows whether you understand a program: one question at a time, about cases the program doesn't run itself, and the answer only after you've tried. You can check each answer by running the program.
  • When the code is what you're learning, write it yourself, and let the AI help with everything around it.

Practice it all at once. Mia's program in the editor should add up the week's walks, but it ends with an error.

Next comes Coding Agents and Safety: assistants that change your files and run commands themselves, and how to work with AI safely.

Instructions

  1. 1

    Put the lesson together in a tutor's instructions in instructions.txt, as you'd write them once in an app: a hint and not the corrected code when you ask what's wrong, an explanation when you ask why, three things and no rewrite when you ask for feedback, one question at a time in a quiz, and the corrected code only when you ask for it. Then run the program, attach script.py and what it printed, and send the message in the chat box.

  2. 2

    Fix the program yourself, keeping the list of walks as it is, and run it. It prints Total: 155.

Back

7/7

  1. 1. Hints First
  2. 2. Explain It, Don't Fix It
  3. 3. Quiz: The Same Mistake
  4. 4. Feedback, Not a Rewrite
  5. 5. Let It Quiz You
  6. 6. Quiz: Who Writes It?
  7. 7. Summary
Next

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with: