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

What Not to Send

Whatever you send to an AI goes over the internet to the company that runs it, and stays in your chat history. Depending on the app and its settings, it may be used to train the next version of the AI, and people who work there may read some of it. So some things never go into a chat: passwords and sign-in codes, card numbers, and other people's private details.

In code, they hide where you don't look. A program sometimes has a password in it, or a key (often called an API key): a long code that lets a program use a service in your name, such as one that sends text messages. Everything in a file goes with it when you attach it, comments too. And a coding agent reads the files of your project by itself, so whatever is in them goes to the AI too. Read a file through before you attach it, and keep passwords and keys out of the files you send and the projects you give an agent.

The AI doesn't need a password to find a mistake. Mia's program in the editor should add up the minutes of her walks, but prints Time: 20. At the top, she has written down her login for the booking website, so she doesn't forget it.

Instructions

  1. 1

    Before you attach script.py, delete the line with Mia's password from it, the comment at the top. Then attach the program and send the message in the chat box.

  2. 2

    Fix the line the answer names and run the program. It prints Walks: 4 and Time: 170.

Back

4/7

  1. 1. What a Coding Agent Does
  2. 2. Reading a Change
  3. 3. Quiz: It Says It Works
  4. 4. What Not to Send
  5. 5. Don't Run What You Can't Read
  6. 6. Quiz: Say When It Helped
  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: