docstring in python||function #programming #coding python #technology #function #G&G#shorts #short

preview_player
Показать описание
what is docstring?
the first string after the function is called docstring this is used to for good practice in programming
ex-
def evenOdd (x):
""'" function to check if the number is even or odd"""
if(x%2==0):
print ("even")
else:
print ("odd")
print(evenOdd_doc_)
output-
function to check if the number is even or odd
Рекомендации по теме
Комментарии
Автор

very helpful content to understand the docstring ...
thanks a lot...

vaibhavpandey_Official
join shbcf.ru