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
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
Fix the line the answer names and run the program. It prints
Walks: 4andTime: 170.