Comments are a way to document your Python script. There are several ways to use comments, but the best advice we can give is to use them as much as possible! There are a few ways to make a comment in Python.
You can start a line with a pound/hash (#) sign, or put one anywhere in a normal line of code.
Blocks of Lines
While Python doesn't explicitly have a way to block comment (comment out multiple lines), multi-line strings are functionally similar, and a common convention.
Comment Many Lines with a Keyboard Shortcut
In Ignition, you can use the Ctrl-/ keyboard shortcut to comment several lines of code at once. Just highlight one or more lines of code and hold the Ctrl key and press "/". This will prepend all of the selected lines of code with the pound/hash (#) sign. Press Ctrl-/ again to remove the pound/hash sign.