Last answered:

09 Jan 2024

Posted on:

03 Jan 2024

0

Resolved: practise exam question 3 doubt

why is the first option wrong here ?

2 answers ( 2 marked as helpful)
Instructor
Posted on:

08 Jan 2024

0

Hi Prashant!

Thanks for reaching out!

The first option leads to a syntax error - it's because the return statement is written with an s in the end: returns

Hope this helps.

Best,

Ivan

Posted on:

09 Jan 2024

1

@ivan oh man! yea I just realised. Thanks for answering back. I'll have to be more careful next time :)

Submit an answer