Related to submit the answer

Namaste Everybody, I wanted to participate in DSA. I belong to Python religion, So I want to know how to submit the answer to the question. Class base or function base. How will the test be evaluated? Yes! I hope there is secularism

no there no need to make class or function.
you just need to take input from standard input. (most probably using input(“input message if required.”))
and give output in standard ouput. (most probably using print (output))