AI Computer Science Academy · Faisalabad

AI & Prompt Engineering

Answer an objection

Task 28 of 56 Python Build the assistant
All tasks
Read first Task 28

Answer an objection

An objection is not a refusal, it is a question in disguise. Name the concern, then give one concrete next step — never argue.

Task

What is the best first move on an objection?

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
openers = {
    'expensive': 'I understand the fee matters. It is paid per month and there is no installation fee.',
    'time': 'Most of our students study in the evening batch.',
    'job': 'Our graduates work in software houses in Faisalabad.',
}

def objection_reply(concern):
    for key in openers:
        if key in concern.lower():
            return openers[key]
    return 'Tell me a little more so I can help properly.'

print(objection_reply('It feels expensive'))
print(objection_reply('I have no time'))
Python 1 automatic check Build the assistant
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)