Issue with hackerblocks

I am having trouble submitting solutions on this site, the code I have written is working perfectly fine in other IDEs but it says wrong answer in this.
I don’t understand what this platform expects me to do.
So, can you please give me an example solution in python so that I know how to approach problems on this platform?
I do not know if I am supposed to just declare the function or ask for user input and then use that value in function or something else?

It’s clear now. Thanks

Never mind, it’s resolved now.