top of page
Search
[Python] Commenting Out Multiple Lines
Writing comments across multiple lines is needed for annotating source code, and for temporarily disabling processing during development and testing. Commenting out a single line To comment out just one line, use "#" (hash) print("Good morning!") # print("This line is commented out and will not run") print("Good afternoon!") #You can also put a comment after a command print("Good night!") The result is as follows. The commented-out part doesn't run, so it isn't printed. Good
2 days ago1 min read
bottom of page