20.2k views
0 votes
What is the comment marker in Python? ("character marker" means the sequence of characters that indicates the beginning of a comment.)

User Gamze
by
6.0k points

1 Answer

3 votes

Answer:

The # marker is used to mark a line comment in python.

Step-by-step explanation:

The line that starts with # is a comment.Python will ignore the lines that starts with #.These comments can be used to add extra information in the python code.

For example:-

Following is the python code with comments.

names=['sam','optimus','bumblebee'] #names is the list of transformers characters.

for i in names:

print(i) #printing the names.

There are 2 comments in the python code written above.These are ignored by python.

User Surlac
by
6.5k points