Hi there,
Can anybody tell me what is internal documentation and what is external documentation based on the following example:
def is_palindrome(s):
'''If the str is a palindrome which is a phrase that reads the same \
forwards and backwards return True; otherwise, return False.Assume that\
there are only lowercase letters in the parameter: no punctuation, spaces,\
uppercase letters, or other funny characters. '''

if s == s[::-1]: #reverse the string
return True
else:
return False

Is that right that things after # is internal documentation. And things which are used for explaining functions(i.e. docstring here) is external documentation?

Thank you :)

Your explanation sounds well reasoned.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.