AI Computer Science Academy · Faisalabad

AI & Prompt Engineering

The system prompt

Task 15 of 56 Python Prompt engineering
All tasks
Read first Task 15

The system prompt

The system prompt is the one place for fixed rules: what the bot may talk about, what it must never invent, and what it should do when it does not know. Keep it short and specific — every rule costs tokens on every request.

Task

What belongs in the system prompt?

The editor already contains a starting point. Change it until every check passes — the Next task button unlocks when it does.

What you start with
system = (
    'You are the AI Computer Science Academy assistant in Faisalabad. '
    'Answer only about our courses, fees, timings and admission. '
    'Never invent a fee. If you do not know, ask the student to call +92 325 8000848.'
)
print(len(system.split()), 'words in the system prompt')
print('mentions the phone:', '+92 325 8000848' in system)
Python 1 automatic check Prompt engineering
Code editor Ctrl + Enter runs
Run your code to see the output and the checks.
Your result

Submit your code to see results

Write your code in the middle column and press Run code.

Checks on this task:

  • Check 1

Track progress

0 of 56 tasks complete

Next task unlocks when every check passes.

Sign in to keep your code and certificates.

Next task (pass every check first)