Topic 3 : Python Foundation : Assessments--Item 54 Writing Files

I am getting an error “Please check the file content” but getting the correct result Pls. look after that. As this is the only problem which is remaining, rest are done.
Untitled

Hi, Siddhant.

I have rechecked your code and it is absolutely right.
According to question function also not required.
What is the error you are getting?
It is perfectly working fine for me.

All the best!

I have tried both with and without creating function but it shows this all the time

Hi, Siddhant.

Once delete this file and recreate it, it might work.

Hope you will be successful!

Thanks sir, It worked!!!