+ 1
is it necessary to put the closing quotation (""") marks in docstring in the next line of the code?
means ...is this format correct? def square_root (): """ function to find square root of a number""" instead of : def square_root (): """ function to find square root of a number """
2 ответов
+ 1
Use the second one, it's more readable that way.
+ 1
both are right but tgr second one adds an extra line