are comments and strings the same in python?
Strictly speaking, they are not the same. But in your question, what you refer to as "a comment" is actually a string. A comment is everything appearing in the same line after the # character.
a.py:
"""
comment1
"""
# comment2
Now:
% strings a.pyc | grep comment
comment1
As you can see, comment2 is not part of the compiled byte code, while comment1 is -- because it's not a comment, it's a string.
As others pointed out, the string is considered a docstring. docstrings are conventionally used for documenting your code, while comments are used, well, for commenting, and are not included in the documentation.