Please explain what is the error?

Greetings it is requested to explain what is wrong over here:

{Moderator’s Edit: Solution Code Removed}

Hi! Can you be more specific, please?

Hey @Talha1234,
Have you converted the cell from a code cell to a markdown cell by mistake, as I can’t see the syntax highlighting in the cell? Also, the code that you have written for the exercise is perfectly fine, so it is either what I mentioned above, or some other error. The error doesn’t lie in your code.

P.S. - Posting code publicly is against the community guidelines. If a mentor needs to take a look at your code, he/she will ask you to DM it.

Let me know if this helps.

Cheers,
Elemento