Penny, the AI Help Assistant

What it is

Penny is a chat bubble that answers "how do I…" questions about LearnCoding, using only LearnCoding's own written guides, the same guides you can browse at Docs. Inside a lesson, it can also answer questions about the lesson you're currently reading. It's a separate thing from the Help popup (the "?" button in the top bar): that one is a curated summary of your role you can browse; the assistant is for asking one specific question and getting one specific answer, with follow-ups.

The first time you open her with nothing in the conversation, Penny introduces herself and offers a few example questions, click one to ask it straight away.

You can say hello, too. Penny answers "hi", "thanks", "bye" and "what can you do?" politely, and offers the same example questions when that helps you get started.

An administrator turns the assistant on for your school. If it hasn't been turned on, you won't see the bubble.

Where to find it

A round chat icon floats in the bottom-right corner of the screen on every page you're signed into. Click it to open the conversation panel; click it again (or the ×) to close it. If you opened the Help popup instead, look for an Ask a question button in its footer; it closes the popup and opens the assistant for you.

Want more room? Click the expand button (two diagonal arrows) in the panel's header to make Penny's window much larger; click it again to shrink it back. Penny remembers your choice the next time you open her in this browser.

Asking a "how do I…" question

Type your question and press Enter (or the send button). The assistant searches LearnCoding's written guides for your role and answers from what it finds there, naming which guide page it used. If your question mentions a guide topic (badges, quizzes, your course dashboard, and so on), it's a good candidate for this; it's meant for questions about using the platform, not about programming in general.

Follow-up questions work in the same conversation: "what about the second step?" is understood using what you already asked.

Asking about the lesson you're reading

Open the assistant while you're inside a lesson and it can also answer questions about that lesson's own content, the panel header shows the lesson's name when this is active. It answers using the programming language, spoken language, discipline and other options you have currently selected in the lesson, not every version of the content that exists, so if you switch to a different programming language partway through, ask again and the answer follows your new selection. Penny answers in the language you write your question in, and writes code examples in the programming language you have selected.

If a part of the lesson or a quiz has no version for exactly what you selected, LearnCoding shows you the closest version it has (for example the Physics version of an exercise when you picked Statistics, but always in your programming language when one exists). Penny sees that same version, and knows it is not quite the one you picked.

If you have Show advanced content switched off, Penny leaves out the advanced topics and blocks you can't see. Switch it on and ask again to include them.

Penny also knows which topic you have open, so you can say "what does this topic talk about?" or "explain this section" without naming it. Move to another topic and your next question follows you there. In a very long lesson Penny reads the topic you have open in full, plus as many of the others as fit, and knows the names of the ones she had to leave out.

Your instructor may turn lesson questions off, in which case the assistant still answers platform how-to questions, it just can't see the lesson content. Some courses have AI turned off entirely by their instructor, in which case lesson questions never include that course's content, no matter what.

Opening a different lesson starts a fresh conversation, the assistant doesn't carry a lesson conversation over to a lesson it wasn't about.

Asking about a quiz

Penny can see the quizzes on the lesson you're reading, so you can ask her about them: what a question is actually asking, which idea it's testing, where in the lesson it's explained, or how to approach a coding exercise you're stuck on. For a coding question she can also see the problem, the starter code you were given, what each automated test checks, and any hint your instructor wrote. She sees each quiz in the version you have selected.

You don't have to say which quiz. "Help me with the current quiz" means the quiz you have on screen: if a topic has several, scroll so the one you mean is in view before you ask.

Penny names a quiz by its title, the same title you see on the quiz ("the Practice midterm"), never as "QUIZ 1" or "QUIZ 2". A quiz with no title is just "the quiz".

On a quiz's own page. When you open a quiz on its own page (not inside a lesson), Penny can help with that quiz there too, in the version you picked on the quiz's buttons. On that page she sees only that quiz, not the lesson it belongs to, and the conversation is kept separate from your lesson conversations.

She cannot tell you the answers, and not because she's been told not to; she has never been given them. Correct MCQ options, the hidden unit tests, and instructors' reference solutions are removed before anything reaches her, exactly as they are removed before the quiz reaches your browser. So "which option is right?" will get you an offer to work it out together, because that is genuinely all she can do. Working it out together is usually faster anyway.

Some graded quizzes are off limits. Your instructor can switch Penny off for a particular quiz in your section. While that quiz is on your screen, Penny will tell you she can't help with it. She also leaves out the text of the topic that quiz is in, wherever you are in the lesson (she tells you that topic was left out, by its name), and in an assignment she leaves out the whole assignment. She still helps with other topics, other lessons and with how LearnCoding works. See Due Dates and Late Work.

On a graded quiz, Penny explains ideas, not your code. If the quiz counts toward your grade in your section, Penny helps with the concepts only: what the question asks, the idea it tests, and what a kind of error message means in general. She won't look at your code, debug it, or tell you whether your approach is right, even if you paste it in. She explains the idea in general terms and names the lesson topic to re-read. She does not quote the lesson sentence that gives the answer, because that would hand it to you. The same goes on a practice quiz.

Help with your own code on a practice quiz

On a practice coding quiz (one that does not count toward your grade), when you ask Penny a question about the quiz you have on screen, she can also see the code in your editor right now and your last result:

  • after Submit: whether you passed and which tests passed or failed (by what each test checks), or that your code didn't compile or run with the tests. She does not see the error text of a Submit, because your code runs together with the hidden tests there and that text can quote them;
  • after Run: what your program printed, and its error message if it had one (a Run is your code on its own, so that output is yours to discuss).

So "why is my code failing?" gets an answer about your code. If a Submit says your code didn't compile and the quiz has a Run button, run it first so she can see the error message. She will point you to the line or idea that goes wrong and let you make the fix; she won't rewrite it into a finished solution.

This is sent only at the moment you ask a question, only for the quiz on your screen, and the copy sent to Penny is not saved: it is not stored with your conversation and not written to any record. (Your Submit itself is saved as usual, for your grade; that has nothing to do with Penny.) It never includes a test's hidden values. On a graded quiz none of your code is sent at all. Nothing about your answers to a multiple-choice quiz is ever sent.

What Penny can and cannot see

Penny can see:

  • LearnCoding's written guides for your role;
  • inside a lesson, the lesson in the version you have selected (programming language, spoken language, discipline), without the advanced parts if you have them switched off, and which topic and quiz you have on screen;
  • the quizzes on that lesson, or on a quiz's own page that one quiz: questions, options, the problem, the starter code, what each test checks, your instructor's hints;
  • on a practice coding quiz, your current code and last result, when you ask (see above).

Penny cannot see:

  • the correct answers, the hidden tests, your instructor's model solutions, or the contents of any data file (she knows a file's name and size at most);
  • your code on a graded quiz, or your answers to a multiple-choice quiz;
  • the hidden set-up code around a Try It example (she sees the part you see);
  • other students, their work, or your grades;
  • a quiz your instructor switched her off for, or the topic it is in;
  • anything outside LearnCoding.

What it won't do

The assistant only answers from what it's actually been given: LearnCoding's written guides, and, when allowed, the lesson you're reading. If your question isn't covered by either, it says so plainly, suggests rephrasing, offers a few example questions, and points you to the full Docs section, rather than guessing. It won't give you a complete solution to a graded exercise; for a question about an exercise, expect it to guide you rather than hand you the answer. It never sees the text inside a data file; at most it knows that a file exists, by name and size.

When Penny is slow or can't answer

While she works on an answer you see "Thinking". If it takes about 12 seconds, it changes to "Still working, this is taking longer than usual." and a Stop button appears. Stop cancels the question and puts it back in the box, so you can edit it or send it again.

If Penny can't reach the AI provider, she says "Penny can't answer right now. Try again in a few minutes. If it keeps happening, ask your instructor." Under it, Try again sends the same question again. If it keeps failing, tell your instructor; there is nothing you need to fix.

Clearing a conversation

The trash-can icon in the panel header clears the current conversation and starts over (the introduction and its example questions come back). This only clears what's shown to you; it doesn't affect anything else on your account.

Choosing your AI provider, model and key

Don't have an API key, or not sure what one costs? Click How to get a free API key in Penny's "you need your own key" notice, or How to get a key (free options) next to the key box in her settings. Either opens a short guide covering which of the providers your school has enabled give keys away free, what those free allowances look like, where to sign up, and what paying instead would involve. The same guide is on your Profile under AI keys, as How to get an API key.

Click the gear icon in the panel header to open Penny's settings, without leaving the page you're on.

If you haven't saved a key of your own, the pane starts with "Penny is ready to use. You don't need to set anything up." Nothing else is needed. If you do want your own key, click Advanced: use my own AI key to open the fields below. Once you have a key of your own, the full pane shows straight away.

In the fields you can:

  • Choose the AI provider you want her to use, from the ones your administrator has enabled.
  • Choose the model: either from the list your administrator has approved for that provider, or, for Google Gemini when no list has been set up, by typing a model name yourself.
  • Save your own API key for that provider, if you have one. It's stored encrypted and only you can use it.
  • Fetch models: once you've saved your own key, this asks the provider which models that key can actually run, and you tick the ones you want in your dropdown. Handy when a provider offers dozens and you only ever use two or three. Without a key of your own you'll use the list your administrator has approved, which is the normal case and works fine. For a provider that publishes prices (OpenRouter), free models show a Free badge, and a filter lets you show Free only or Not free. Tick all shown and Untick all shown change only the models the filter is showing.

The pane also tells you whose key is currently being used: your own, or your institution's shared one. You can never see the shared key (it is encrypted and never sent to your browser) but until you save your own, your questions are spending it.

If your administrator requires students to use their own key, the pane says so instead, naming the provider and model you selected ("Add your Google Gemini API key to use ..."), and the key field is marked required. There is no Use the default button for you, because the default is your administrator's shared key, which you cannot use. Penny also shows this notice when you open her, with an Add your API key button, so you know before asking anything. Once you save a key the notice goes away.

If you help build an assignment (see Helping Build an Assignment), this page is still about Penny only. The AI wizard in that assignment's builder is a separate feature: it never uses your institution's shared key and needs a key you saved yourself. A key you save in Penny's settings or on your Profile is the one it uses.

Your choice comes first. Whatever you set here is what Penny uses, your key ahead of your school's shared key, and your model ahead of the administrator's default. What your administrator has configured is the fallback, used only where you haven't chosen. Use the default hands the choice back to them again (your saved key is kept), and Remove key deletes your key but keeps your provider and model choice.

Everything here is optional. Without any of it, Penny simply uses whatever your school has made available. Your Profile page has the fuller key manager, test a key, or remove one for a provider your administrator has since switched off, and the panel links to it.

Privacy

Your question (and, inside a lesson or on a quiz's page, the lesson and quiz content described above, plus your own code and last result on a practice coding quiz) is sent to whichever AI provider your school has configured, or your own provider if you've saved a personal key, in order to generate an answer. The copy of your code and result sent to Penny is not stored. A saved key is stored encrypted and only you can see that you have one configured, test it, or remove it; nobody else, including administrators, can view or use it.

Related guides