Why Does the Lesson Use Triple Quotes Instead of Hash Signs For the Comment?


Hello! In this lesson, triple quotes are used for the comment. Is there a reason why # aren’t used for the comment instead?


FAQ: Learn Python: Functions - Function Junction

Hi @ethiers,

Sometimes it’s just more convenient to not preface every line in a long comment with a hash sign, and writing a multiline string in the middle of the code is easier. I don’t think there are any advantages to using a multiline string for a comment over using actual comments with a hash sign, though.