From f34d635986d0b957118176484f1071bed4ad647e Mon Sep 17 00:00:00 2001 From: pelibby16 <pelibby16@earlham.edu> Date: Thu, 17 Oct 2024 16:22:30 -0400 Subject: [PATCH] add to comment explanation. --- topical-units/env-python/BASICS.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/topical-units/env-python/BASICS.md b/topical-units/env-python/BASICS.md index 9d5b35d..f7088ae 100644 --- a/topical-units/env-python/BASICS.md +++ b/topical-units/env-python/BASICS.md @@ -8,7 +8,9 @@ print("test two") print("test three") # Comments can also be on the end of a line #print("test four") ``` -"test four" will not be printed, since that line is commented out. +Comments are used to insert non-code text into a script. This can be to describe parts of your code and what they do, or quick notes to yourself or others to help organize and annotate. + +In Python, comments are represented with a `#` at the beginning. Any line starting with a `#` will be ignored as the code is run. In this example, the first three print statements will run normally, and "test four" will not be printed, since that line is commented out. ## Math ```py -- GitLab