How To Comment Out Multiple Lines In Python?

Use `#` at the start of each line

Select multiple lines in your editor and use the comment shortcut

Use triple quotes `””” … “””` for temporary multiline strings, not true comments

Use triple single quotes `”’ … ”’` for temporary multiline strings, not true comments

Suggested for You

Trending Today