Ask Question
30 March, 02:19

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

+2
Answers (1)
  1. 30 March, 05:08
    0
    The # marker is used to mark a line comment in python.

    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.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What is the comment marker in Python? ("character marker" means the sequence of characters that indicates the beginning of a comment.) ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers