Is there a way to comment on multiple lines in Python?
Unless used as doc strings, multiline strings don't generate bytecode, just like #-prepended comments.It acts like a comment.
If you say this behavior must be documented in the official docs to be a true comment syntax, you would be right to say it is not guaranteed as part of the language specification.
Your editor should be able to easily comment-out a selected region by placing a # in front of each line.If not, use an editor that does.