how to do long comments in python code example
Example 1: how to make a comment python
# You use a hastag at the beginning of the line to make anything after it a comment
'''
You can also make a multi line comment
With three single quotes at the beginning and end!
'''
Example 2: big comments python
# One line Comment
myvar = 5 # Can also start after any chunk of code
"""
Big multiple lines comment
So many lines
WoW
"""
Example 3: how to put comments in python
# Just put a hash before the comment. This can help other collaborators understand what you are doing, or help you remember the intention of a certain line of code. It should appear gray. Oh - and by the way, the Python computer ignores your comments.
Example 4: comment sections of code python
For editing in VSCode, highlight code block, then: Edit>>Toggle Line Comment