Empowering you to understand your world

How To Comment Out Multiple Lines In Python

By Nicholas Brown

You can comment out multiple lines in Python using the same syntax as regular single-line comments:

#Comment line 1
#Comment line 2
#Comment line 3
Subscribe to our newsletter
Get notified when new content is published