AI Computer Science Academy · Faisalabad

AI & Prompt Engineering

Write the answer copy

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

Write the answer copy

Good bot copy is short, specific and kind. State the number, state that it is per month, and remove the fear of hidden charges — the academy never charges an installation fee.

Task

What should a fee answer always make clear?

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
FEE = 11667

def format_money(amount):
    text = str(amount)
    out = ''
    while len(text) > 3:
        out = ',' + text[-3:] + out
        text = text[:-3]
    return text + out

def fee_reply(course, fee):
    return course + ' costs Rs ' + format_money(fee) + ' per month. Nothing extra at admission.'

print(fee_reply('Python', FEE))
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)