Beginner with python - I am taking a class with data camp and in one exercise, I used " # " to add my comment, after running the code, the comment is not showing up I believe it should right.

Did I miss anything or is the exercise screen has a bug or something? This question is too simple, I may sound dump but rather focus on learning the basics before moving on. lol.

1

There are 1 best solutions below

1
On

If your line starts with the comment sign #, then the python interpreter will ignore this line. So if you run these lines:

print("Hello earth")
# print("Hello moon")

The output will be only Hello earth