Skip to main content

codeteacher privacy notice

Last updated 27 November 2026. This notice is about the codeteacher website. Each research study that uses the website also gives you an information sheet and a consent form.

The short version, for pupils

What is this website?

codeteacher helps you learn Python. It is part of a research study at the University of Glasgow. An AI writes your tasks, marks your answers and, if your teacher turns it on, gives you hints.

What does it keep about you?

Who can see it?

Your teacher and the researchers can see everything you type on this website, including your questions to the AI Assistant. When the research is written up, nobody can tell which pupil did what.

Where does it go?

It is stored on computers in London. To write and mark tasks and give hints, your answers, code and questions are sent to an AI company called OpenAI, in the USA. When your answers are marked, your first name is sent too. Your password is never sent. OpenAI says it does not use this to train its AI, and it deletes it within 30 days.

Keeping you safe

What you type to the AI Assistant is checked by a computer. If something looks worrying, or unkind, your teacher is told so an adult can help. If something is worrying you, talk to your teacher or another adult you trust.

The AI can get things wrong

If the AI marks a right answer as wrong, or a task does not make sense, tell your teacher. They can report it.

How long is it kept?

For as long as the study lasts. After that it is kept so it can help future research. Publications never include anything that could be used to identify you.

Questions, or changed your mind?

Ask your teacher. The names and emails of the researchers are on the information sheet you were given when you agreed to take part.

The full privacy notice

For pupils, parents and carers, teachers and schools taking part in research studies that use codeteacher.

Your personal data

The University of Glasgow is the data controller of the personal data processed through the codeteacher website. The research team for each study is named on that study's participant information sheet and consent form, together with the study supervisor and the ethics contact. The University's Data Protection Officer can be contacted at dataprotectionofficer@glasgow.ac.uk.

What we collect

DataWhat it includesWhen
Pupil account First name; a numeric pupil ID; a username used to log in (during a study, a made-up name such as BlueZebra32; see below); a password (stored only as a one-way hash); class and school; a topic of interest used to theme tasks, the study group (condition) and the teacher's settings (whether the AI Assistant is on, and whether the pupil may choose which part of the course to work on). Set up by the research team before the study.
School email address (optional) After a study, a pupil may ask for their username to be changed to their school email address so that it is easier to log in. Their email address is then stored as their username. Otherwise, the website does not store pupils' email addresses. Only if the pupil asks.
What is not collected Pupils' surnames, dates of birth, home addresses or other contact details. Never.
Learning activity Each task the pupil was given; every answer submitted and the mark and feedback it received; the final answer; the code and error message of failed Python runs; start and finish times; counts of incorrect answers, errors and help requests; the next step the site chose and why; any problem reported with a task. While the pupil works.
AI Assistant Each help option chosen or question typed, the pupil's code and program output at the time, and the AI's reply. When the AI Assistant is turned on and used.
Safety checks Questions typed to the AI Assistant, and the AI's replies, that an automatic check flagged (for example possible distress, a disclosure, or unkind or unsuitable content), with the check's scores, and when and by whom each flag was reviewed. When a message is flagged.
Page activity Whether the task page is on screen, hidden behind another tab, or closed, and for how long. This helps teachers see who is stuck or away, and is used in the research. About every 30 seconds while a task page is open.
Teacher actions When a teacher checked a pupil's answer, gave help, reported a task or changed a setting. When it happens.
Teacher account Name, email address and password hash. Set up by the research team.
Technical logs For each request to the AI: the time, which AI model answered, how long it took and whether it worked. These logs do not contain what was sent. Each AI request.

We do not ask for special category data (such as health or religion). A pupil may still type something personal to the AI Assistant; this is why typed questions are checked and flagged to an adult.

Why we need it

Legal basis for processing

We process this data because it is necessary for a task in the public interest: research by the University (UK GDPR Article 6(1)(e)).

Taking part in a study is voluntary, and the study's consent form records that agreement for research ethics purposes.

Automated decisions

The site decides automatically, using fixed rules, whether a pupil moves to the next stage, repeats a stage or goes back one. An AI marks answers. These decisions only affect which practice task comes next and have no legal or similarly significant effect. A teacher can check and accept a pupil's answer, or report a marking mistake, at any time.

What we do with it and who we share it with

We do not sell data, show advertising, or use data for any purpose other than those above.

Cookies

The site uses one cookie, which keeps a user logged in and is deleted when the browser closes. It has no tracking or advertising cookies. The teacher dashboard also remembers, in the teacher's own browser, whether they chose the card or list view.

How long do we keep it for?

Study data is kept for the length of the study. It is then kept so that it can be used in future research studies. Publications never include information that could be used to identify a pupil.

What are your rights?

You can ask for access to your data, ask for it to be corrected or deleted, ask us to limit how we use it, or object to us using it. Because the data is used for research, some of these rights may be limited where they would seriously harm the research, as the law allows. How to withdraw from a study, and until when, is explained on the study's information sheet. Please give the pupil's username with any request. To make a request, speak to the research team named there, or contact dp@glasgow.ac.uk.

Complaints

If you wish to complain about how we have handled your personal data, contact the University's Data Protection Officer at dataprotectionofficer@glasgow.ac.uk. You can also complain to the Information Commissioner's Office (ico.org.uk).

Changes to this notice

If the website changes what it collects or who it shares data with, this notice will be updated and the date at the top changed.

Back to the top